also making the environment varible more sensible

This commit is contained in:
Luke Robles 2017-08-10 14:46:22 -07:00
parent 7ef01b36cb
commit 6b354777b5

View File

@ -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])
client.run(tokens[dragon_environment])