diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..a42c9d0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +bot.env \ No newline at end of file diff --git a/app/bot/helper/confighelper.py b/app/bot/helper/confighelper.py index c3e04fa..4f5b08e 100644 --- a/app/bot/helper/confighelper.py +++ b/app/bot/helper/confighelper.py @@ -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'])