forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-25 05:37:55 +02:00
parent e82bc35011
commit 1f4414330e
1 changed files with 2 additions and 1 deletions

View File

@ -240,7 +240,8 @@ def transfer_coins(v, username):
if v.coins < amount: return {"error": f"You don't have enough coins."}, 400
if amount < 100: return {"error": f"You have to gift at least 100 coins."}, 400
tax = math.ceil(amount*0.03)
if not v.patron and not receiver.patron and not v.alts_patron and not receiver.alts_patron: tax = math.ceil(amount*0.03)
else: tax = 0
log_message = f"@{v.username} has transferred {amount} coins to @{receiver.username}"
send_repeatable_notification(TAX_NOTIF_ID, log_message)