also making the environment varible more sensible
This commit is contained in:
parent
47e9f99449
commit
2c0c27d17f
@ -14,13 +14,13 @@ tokens = {
|
|||||||
'test': 'MzQ1MjkwMTI5OTQ4Mjc4Nzg0.DG5IBw._9umb82PrL22bPe7GjmHClU-NtU',
|
'test': 'MzQ1MjkwMTI5OTQ4Mjc4Nzg0.DG5IBw._9umb82PrL22bPe7GjmHClU-NtU',
|
||||||
'prod': 'MzM5NDQ2NTgwMTU3MzQ5ODg4.DG5K5Q.2kIonA_XHLXU4_Sq4O63OzCb0Jc'
|
'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
|
@client.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
print("\n********************************")
|
print("\n********************************")
|
||||||
print("\nDRAGON BOT RUNNING IN {} MODE".format(token.upper()))
|
print("\nDRAGON BOT RUNNING IN {} MODE".format(dragon_environment.upper()))
|
||||||
print("\n********************************")
|
print("\n********************************")
|
||||||
|
|
||||||
if debug:
|
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))
|
await client.send_message(message.channel, "There arent {} lines of output yet".format(num_lines))
|
||||||
|
|
||||||
|
|
||||||
client.run(tokens[token])
|
client.run(tokens[dragon_environment])
|
Loading…
x
Reference in New Issue
Block a user