subscriptions/redemptions messages colored
This commit is contained in:
parent
d45d52f34f
commit
e011621529
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue