diff --git a/files/helpers/const.py b/files/helpers/const.py index c2f8e0ee88..3c9751215f 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -570,4 +570,16 @@ no_pass_phrase = """
Sorry whiteboy, we're gonna need to see some ID before yo db = db_session() SUBS = [x[0] for x in db.query(Sub.name).all()] -db.close() \ No newline at end of file +db.close() + +ROLES={ + "owner": "864612849199480914", + "admin": "879459632656048180" if environ.get("DOMAIN") == "pcmemes.net" else "846509661288267776", + "linked": "890342909390520382", + "1": "868129042346414132", + "2": "875569477671067688", + "3": "869434199575236649", + "4": "868140288013664296", + "5": "880445545771044884", + "8": "886781932430565418", + } \ No newline at end of file diff --git a/files/helpers/discord.py b/files/helpers/discord.py index 7486574b95..d0993a7525 100644 --- a/files/helpers/discord.py +++ b/files/helpers/discord.py @@ -1,6 +1,7 @@ from os import environ import requests import threading +from .const import * SERVER_ID = environ.get("DISCORD_SERVER_ID",'').strip() CLIENT_ID = environ.get("DISCORD_CLIENT_ID",'').strip() @@ -8,18 +9,6 @@ CLIENT_SECRET = environ.get("DISCORD_CLIENT_SECRET",'').strip() BOT_TOKEN = environ.get("DISCORD_BOT_TOKEN",'').strip() AUTH = environ.get("DISCORD_AUTH",'').strip() -ROLES={ - "owner": "864612849199480914", - "admin": "879459632656048180" if environ.get("DOMAIN") == "pcmemes.net" else "846509661288267776", - "linked": "890342909390520382", - "1": "868129042346414132", - "2": "875569477671067688", - "3": "869434199575236649", - "4": "868140288013664296", - "5": "880445545771044884", - "8": "886781932430565418", - } - def discord_wrap(f): def wrapper(*args, **kwargs):