subscriptions/redemptions messages colored

This commit is contained in:
Nicolás Sánchez 2025-01-11 18:37:48 -03:00
parent d45d52f34f
commit e011621529
1 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ class earner:
def subscribe(self,amount,force_pause=False): 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}") 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: if force_pause:
self.pause = True self.pause = True
@ -158,7 +158,7 @@ class earner:
def redeem(self,amount,force_pause=False): 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}") 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: if force_pause:
self.pause = True self.pause = True