This commit is contained in:
Aevann1 2022-01-24 17:44:27 +02:00
parent df90604d84
commit 40e77010d7
3 changed files with 6 additions and 5 deletions

View file

@ -243,7 +243,7 @@ def transfer_coins(v, username):
tax = math.ceil(amount*0.03)
log_message = f"@{v.username} has transferred {amount} coins to @{receiver.username}"
send_repeatable_notification(CARP_ID, log_message)
send_repeatable_notification(TAX_NOTIF_ID, log_message)
receiver.coins += amount-tax
v.coins -= amount
@ -278,7 +278,7 @@ def transfer_bux(v, username):
receiver.procoins += amount
v.procoins -= amount
send_repeatable_notification(receiver.id, f":marseycapitalistmanlet: @{v.username} has gifted you {amount} marseybux!")
send_repeatable_notification(TAX_NOTIF_ID, f":marseycapitalistmanlet: @{v.username} has gifted you {amount} marseybux!")
g.db.add(receiver)
g.db.add(v)