From 65525a23f373e02ca5455cec41df79b6f50f9761 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 21 Sep 2021 22:52:57 +0200 Subject: [PATCH] fds --- files/helpers/discord.py | 5 +---- files/routes/discord.py | 12 ++++-------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/files/helpers/discord.py b/files/helpers/discord.py index cd65ae77e..992695daf 100644 --- a/files/helpers/discord.py +++ b/files/helpers/discord.py @@ -9,12 +9,9 @@ BOT_TOKEN = environ.get("DISCORD_BOT_TOKEN",'').strip() AUTH = environ.get("DISCORD_AUTH",'').strip() ROLES={ - "linked": "849621030926286920", "shrigma": "864612849199480914", "admin": "879459632656048180" if environ.get("DOMAIN") == "pcmemes.net" else "846509661288267776", - "feedback": "850716291714383883", - "newuser": "854783259229421589", - "norep": "850971811918512208", + "feedback": "849621030926286920", "1": "868129042346414132", "2": "875569477671067688", "3": "869434199575236649", diff --git a/files/routes/discord.py b/files/routes/discord.py index ac0d7f67f..e8b00c3df 100644 --- a/files/routes/discord.py +++ b/files/routes/discord.py @@ -117,20 +117,16 @@ def discord_redirect(v): if x.status_code in [201, 204]: if v.id == 1: add_role(v, "shrigma") - time.sleep(0.1) - if v.admin_level > 0: add_role(v, "admin") + elif v.admin_level > 0: add_role(v, "admin") else: add_role(v, "newuser") time.sleep(0.1) - if v.patron: add_role(v, str(v.patron)) + if v.patron: + add_role(v, str(v.patron)) + time.sleep(0.1) add_role(v, "feedback") - - time.sleep(0.3) - - if v.coins > 100: add_role(v, "linked") - else: add_role(v, "norep") else: return x.json()