forked from rDrama/rDrama
xvc
parent
e82bc35011
commit
1f4414330e
|
@ -240,7 +240,8 @@ def transfer_coins(v, username):
|
||||||
if v.coins < amount: return {"error": f"You don't have enough coins."}, 400
|
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
|
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}"
|
log_message = f"@{v.username} has transferred {amount} coins to @{receiver.username}"
|
||||||
send_repeatable_notification(TAX_NOTIF_ID, log_message)
|
send_repeatable_notification(TAX_NOTIF_ID, log_message)
|
||||||
|
|
Loading…
Reference in New Issue