From 5eddba8c1f53e9685b2875d717ca5233969751d3 Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 8 Mar 2019 15:18:24 +0100 Subject: [PATCH] Whoops pt. 2 --- src/bot_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot_main.py b/src/bot_main.py index 9a577650..0c2cf7f5 100644 --- a/src/bot_main.py +++ b/src/bot_main.py @@ -19,4 +19,4 @@ elif "token" not in config and "TOKEN" not in os.environ: print("Config file must contain key 'token', or the environment variable TOKEN must be present.") else: from pluralkit import bot - bot.run(os.environ.get("TOKEN", config["token"]), os.environ.get("DATABASE_URI", config["database_uri"]), int(config.get("log_channel", 0))) \ No newline at end of file + bot.run(os.environ.get("TOKEN", config.get("token")), os.environ.get("DATABASE_URI", config.get("database_uri"), int(config.get("log_channel", 0))) \ No newline at end of file