diff --git a/files/helpers/discord.py b/files/helpers/discord.py index b96fa6dd1..d7c3fa2e7 100644 --- a/files/helpers/discord.py +++ b/files/helpers/discord.py @@ -14,6 +14,10 @@ ROLES={ "feedback": "850716291714383883", "newuser": "854783259229421589", "norep": "850971811918512208", + "paypig": "868129042346414132", + "renthog": "875569477671067688", + "landchad": "869434199575236649", + "turboautist": "868140288013664296", } def discord_wrap(f): diff --git a/files/routes/admin.py b/files/routes/admin.py index e8328c9d2..8c42ac026 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -17,6 +17,7 @@ from flask import * import matplotlib.pyplot as plt from files.__main__ import app, cache from .front import frontlist +from files.helpers.discord import add_role @app.get("/admin/shadowbanned") @auth_required @@ -187,13 +188,17 @@ def badge_grant_post(v): grant_awards = {} if badge_id == 21: + add_role(user, "paypig") grant_awards["shit"] = 1 elif badge_id == 22: + add_role(user, "renthog") grant_awards["shit"] = 3 elif badge_id == 23: + add_role(user, "landchad") grant_awards["shit"] = 5 grant_awards["ban"] = 1 elif badge_id in [24, 28]: + add_role(user, "turboautist") grant_awards["shit"] = 10 grant_awards["ban"] = 3