forked from rDrama/rDrama
cxv
parent
8d730298d9
commit
c2272b9264
|
@ -136,7 +136,7 @@ if SITE == 'rdrama.net':
|
|||
ZOZBOT_ID = 1833
|
||||
AUTOPOLLER_ID = 6176
|
||||
AUTOBETTER_ID = 7668
|
||||
TAX_RECEIVER_ID = 995
|
||||
TAX_NOTIF_ID = 995
|
||||
PIZZASHILL_ID = 2424
|
||||
HIL_ID = 4245
|
||||
CRAT_ID = 747
|
||||
|
@ -164,7 +164,7 @@ elif SITE == "pcmemes.net":
|
|||
ZOZBOT_ID = 1833
|
||||
AUTOPOLLER_ID = 3369
|
||||
AUTOBETTER_ID = 1867
|
||||
TAX_RECEIVER_ID = 1592
|
||||
TAX_NOTIF_ID = 1592
|
||||
PIZZASHILL_ID = 0
|
||||
HIL_ID = 0
|
||||
CRAT_ID = 0
|
||||
|
@ -192,7 +192,7 @@ else:
|
|||
ZOZBOT_ID = 5
|
||||
AUTOPOLLER_ID = 6
|
||||
AUTOBETTER_ID = 7
|
||||
TAX_RECEIVER_ID = 8
|
||||
TAX_NOTIF_ID = 8
|
||||
PIZZASHILL_ID = 0
|
||||
HIL_ID = 0
|
||||
CRAT_ID = 0
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
<h4>Grant</h4>
|
||||
<ul>
|
||||
<li><a href="/admin/awards">Give User Award</a></li>
|
||||
<li><a href="/admin/badge_grant">Grant Badges</a></li>
|
||||
<li><a href="/admin/badge_remove">Remove Badges</a></li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue