+ Fix wrong debug msg for transfer credit
This commit is contained in:
parent
e5ccafe4b5
commit
908d711cda
@ -178,7 +178,7 @@ class CM_BOT_HAL:
|
|||||||
raise Exception(f'[Cannot login] {f_username} cannot login.')
|
raise Exception(f'[Cannot login] {f_username} cannot login.')
|
||||||
amount = cm_bot.get_user_credit() - 0.01
|
amount = cm_bot.get_user_credit() - 0.01
|
||||||
if amount <= 0.01:
|
if amount <= 0.01:
|
||||||
print(f'[No enough credit] {t_username} do not have enough credit.')
|
print(f'[No enough credit] {f_username} do not have enough credit.')
|
||||||
if cm_bot.transfer_credit(t_username, t_password, amount) == True:
|
if cm_bot.transfer_credit(t_username, t_password, amount) == True:
|
||||||
print(f'Successfully transfer amount: {amount} from {f_username} to {t_username}')
|
print(f'Successfully transfer amount: {amount} from {f_username} to {t_username}')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user