From 6b354777b5a8e61e7739a3828b57dc69a58e545f Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Thu, 10 Aug 2017 14:46:22 -0700 Subject: [PATCH] also making the environment varible more sensible --- app/dragon-bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/dragon-bot.py b/app/dragon-bot.py index 8979b2b5..3b1cb685 100644 --- a/app/dragon-bot.py +++ b/app/dragon-bot.py @@ -14,13 +14,13 @@ tokens = { 'test': 'MzQ1MjkwMTI5OTQ4Mjc4Nzg0.DG5IBw._9umb82PrL22bPe7GjmHClU-NtU', 'prod': 'MzM5NDQ2NTgwMTU3MzQ5ODg4.DG5K5Q.2kIonA_XHLXU4_Sq4O63OzCb0Jc' } -token = os.getenv('DRAGON_ENV') +dragon_environment = os.getenv('DRAGON_ENV') -debug = token == 'test' +debug = dragon_environment == 'test' @client.event async def on_ready(): print("\n********************************") - print("\nDRAGON BOT RUNNING IN {} MODE".format(token.upper())) + print("\nDRAGON BOT RUNNING IN {} MODE".format(dragon_environment.upper())) print("\n********************************") if debug: @@ -267,4 +267,4 @@ async def on_message(message): await client.send_message(message.channel, "There arent {} lines of output yet".format(num_lines)) -client.run(tokens[token]) \ No newline at end of file +client.run(tokens[dragon_environment]) \ No newline at end of file