remotes/1693045480750635534/spooky-22
Aevann1 2021-11-19 19:47:39 +02:00
parent cdf60ebc1c
commit 792afa396d
2 changed files with 13 additions and 8 deletions

View File

@ -104,6 +104,7 @@ if SITE == 'rdrama.net':
AUTOPOLLER_ID = 6176
TAX_RECEIVER_ID = 747
PIZZA_SHILL_ID = 2424
IDIO_ID = 30
CARP_ID = 995
RED_ID = 1577
LAWLZ_ID = 3833
@ -120,6 +121,7 @@ elif SITE == "pcmemes.net":
AUTOPOLLER_ID = 3369
TAX_RECEIVER_ID = 1577
PIZZA_SHILL_ID = 0
IDIO_ID = 0
CARP_ID = 0
RED_ID = 1577
LAWLZ_ID = 0
@ -136,6 +138,7 @@ else:
AUTOPOLLER_ID = 6
TAX_RECEIVER_ID = 7
PIZZA_SHILL_ID = 0
IDIO_ID = 0
CARP_ID = 0
RED_ID = 0
LAWLZ_ID = 0

View File

@ -527,12 +527,12 @@ def award_post(pid, v):
author.flairchanged = time.time() + 86400
elif kind == "pause":
author.mute = True
send_notification(995, f"@{v.username} bought {kind} award!")
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
new_badge = Badge(badge_id=68, user_id=author.id)
g.db.add(new_badge)
elif kind == "unpausable":
author.unmutable = True
send_notification(995, f"@{v.username} bought {kind} award!")
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
new_badge = Badge(badge_id=67, user_id=author.id)
g.db.add(new_badge)
elif kind == "marsey":
@ -541,14 +541,15 @@ def award_post(pid, v):
elif kind == "pizzashill":
if author.longpost: author.longpost += 86400
else: author.longpost = time.time() + 86400
send_notification(IDIO_ID, f"@{v.username} used {kind} award on {post.shortlink}")
elif kind == "eye":
author.eye = True
send_notification(995, f"@{v.username} bought {kind} award!")
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
new_badge = Badge(badge_id=83, user_id=author.id)
g.db.add(new_badge)
elif kind == "alt":
author.alt = True
send_notification(995, f"@{v.username} bought {kind} award!")
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
new_badge = Badge(badge_id=84, user_id=author.id)
g.db.add(new_badge)
@ -660,12 +661,12 @@ def award_comment(cid, v):
author.flairchanged = time.time() + 86400
elif kind == "pause":
author.mute = True
send_notification(995, f"@{v.username} bought {kind} award!")
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
new_badge = Badge(badge_id=68, user_id=author.id)
g.db.add(new_badge)
elif kind == "unpausable":
author.unmutable = True
send_notification(995, f"@{v.username} bought {kind} award!")
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
new_badge = Badge(badge_id=67, user_id=author.id)
g.db.add(new_badge)
elif kind == "marsey":
@ -674,14 +675,15 @@ def award_comment(cid, v):
elif kind == "pizzashill":
if author.longpost: author.longpost += 86400
else: author.longpost = time.time() + 86400
send_notification(IDIO_ID, f"@{v.username} used {kind} award on {c.shortlink}")
elif kind == "eye":
author.eye = True
send_notification(995, f"@{v.username} bought {kind} award!")
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
new_badge = Badge(badge_id=83, user_id=author.id)
g.db.add(new_badge)
elif kind == "alt":
author.alt = True
send_notification(995, f"@{v.username} bought {kind} award!")
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
new_badge = Badge(badge_id=84, user_id=author.id)
g.db.add(new_badge)