diff --git a/files/helpers/const.py b/files/helpers/const.py index 3cbf271a2c..c1a4d685b1 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -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 diff --git a/files/routes/awards.py b/files/routes/awards.py index bec11b611d..0d88b8aa82 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -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)