From e011621529ec83cee6bd1fd489ff79f4a65eb776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Sat, 11 Jan 2025 18:37:48 -0300 Subject: [PATCH] subscriptions/redemptions messages colored --- libraries/earner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/earner.py b/libraries/earner.py index 6236f46..d7b8b96 100644 --- a/libraries/earner.py +++ b/libraries/earner.py @@ -122,7 +122,7 @@ class earner: def subscribe(self,amount,force_pause=False): print(f"{datetime.datetime.now().strftime('[%Y/%m/%d %H:%M:%S]')} | {str(self.connector).upper()} | Subscribing {amount} {self.currency}") - self.write_to_log(f"Subscribing {amount} {self.currency}") + self.write_to_log(f"{colors.green}Subscribing{colors.white} {amount} {self.currency}") if force_pause: self.pause = True @@ -158,7 +158,7 @@ class earner: def redeem(self,amount,force_pause=False): print(f"{datetime.datetime.now().strftime('[%Y/%m/%d %H:%M:%S]')} | {str(self.connector).upper()} | Redeeming {amount} {self.currency}") - self.write_to_log(f"Redeeming {amount} {self.currency}") + self.write_to_log(f"{colors.red}Redeeming{colors.white} {amount} {self.currency}") if force_pause: self.pause = True