Skip to content

Commit efae1c4

Browse files
committed
fixed token bug
1 parent 518152e commit efae1c4

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bot.env

app/bot/helper/confighelper.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,7 @@
2929

3030
except Exception as e:
3131
pass
32-
33-
elif(path.exists('app/config/config.ini')):
34-
try:
35-
config = configparser.ConfigParser()
36-
config.read(CONFIG_PATH)
37-
Discord_bot_token = config.get(BOT_SECTION, 'discord_bot_token')
38-
except:
39-
pass
32+
4033
else:
4134
try:
4235
Discord_bot_token = str(os.environ['token'])

0 commit comments

Comments
 (0)