fixed token bug
This commit is contained in:
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
bot.env
|
||||||
@@ -29,14 +29,7 @@ if(path.exists('bot.env')):
|
|||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
elif(path.exists('app/config/config.ini')):
|
|
||||||
try:
|
|
||||||
config = configparser.ConfigParser()
|
|
||||||
config.read(CONFIG_PATH)
|
|
||||||
Discord_bot_token = config.get(BOT_SECTION, 'discord_bot_token')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
Discord_bot_token = str(os.environ['token'])
|
Discord_bot_token = str(os.environ['token'])
|
||||||
|
|||||||
Reference in New Issue
Block a user