fixed token bug

This commit is contained in:
Faiz Ahmed
2021-07-26 13:58:02 -04:00
parent efae1c4c2a
commit 0aec5f4437

View File

@@ -30,12 +30,11 @@ if(path.exists('bot.env')):
except Exception as e: except Exception as e:
pass pass
else: try:
try: Discord_bot_token = str(os.environ['token'])
Discord_bot_token = str(os.environ['token']) switch = 1
switch = 1 except Exception as e:
except Exception as e: print("ERROR. No config found.")
print("ERROR. No config found.")
if(path.exists('app/config/config.ini')): if(path.exists('app/config/config.ini')):
try: try: