fixed token bug

This commit is contained in:
Faiz Ahmed
2021-07-26 13:55:31 -04:00
parent 518152e8f5
commit efae1c4c2a
2 changed files with 2 additions and 8 deletions

1
.dockerignore Normal file
View File

@@ -0,0 +1 @@
bot.env

View File

@@ -29,14 +29,7 @@ if(path.exists('bot.env')):
except Exception as e:
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:
try:
Discord_bot_token = str(os.environ['token'])