fix gumroad for humbdolt

master
Aevann1 2022-09-02 02:48:15 +02:00
parent 5032a9aec2
commit 6201a79df0
2 changed files with 3 additions and 3 deletions

View File

@ -197,9 +197,9 @@ BASEDBOT_ID = 0
BBBB_ID = 0 BBBB_ID = 0
SCHIZO_ID = 0 SCHIZO_ID = 0
A_ID = 0
KIPPY_ID = 0 KIPPY_ID = 0
PIZZASHILL_ID = 0 PIZZASHILL_ID = 0
GUMROAD_MESSY = ()
PIZZA_VOTERS = () PIZZA_VOTERS = ()
IDIO_ID = 0 IDIO_ID = 0
CARP_ID = 0 CARP_ID = 0
@ -254,9 +254,9 @@ if SITE in {'rdrama.net', 'devrama.xyz'}:
BBBB_ID = 12125 BBBB_ID = 12125
SCHIZO_ID = 8494 SCHIZO_ID = 8494
A_ID = 1230
KIPPY_ID = 7150 KIPPY_ID = 7150
PIZZASHILL_ID = 2424 PIZZASHILL_ID = 2424
GUMROAD_MESSY = (1230,1379)
PIZZA_VOTERS = (747,1963,9712) PIZZA_VOTERS = (747,1963,9712)
IDIO_ID = 30 IDIO_ID = 30
CARP_ID = 995 CARP_ID = 995

View File

@ -106,7 +106,7 @@ def give_monthly_marseybux_task():
for u in g.db.query(User).filter(User.patron > 0, User.patron_utc == 0).all(): for u in g.db.query(User).filter(User.patron > 0, User.patron_utc == 0).all():
g.db.add(u) g.db.add(u)
if u.admin_level or u.id == A_ID or (u.email and u.email.lower() in emails): if u.admin_level or u.id in GUMROAD_MESSY or (u.email and u.email.lower() in emails):
procoins = procoins_li[u.patron] procoins = procoins_li[u.patron]
u.procoins += procoins u.procoins += procoins
send_repeatable_notification(u.id, f"@AutoJanny has given you {procoins} Marseybux for the month of {month}! You can use them to buy awards in the [shop](/shop).") send_repeatable_notification(u.id, f"@AutoJanny has given you {procoins} Marseybux for the month of {month}! You can use them to buy awards in the [shop](/shop).")