fixed token bug
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user