remotes/1693045480750635534/spooky-22
Aevann1 2021-08-13 04:43:38 +02:00
parent e47278b0c6
commit 8c7c5ec4c4
2 changed files with 9 additions and 0 deletions

View File

@ -14,6 +14,10 @@ ROLES={
"feedback": "850716291714383883",
"newuser": "854783259229421589",
"norep": "850971811918512208",
"paypig": "868129042346414132",
"renthog": "875569477671067688",
"landchad": "869434199575236649",
"turboautist": "868140288013664296",
}
def discord_wrap(f):

View File

@ -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