Adding debug mode

This commit is contained in:
Luke Robles 2017-08-10 14:44:13 -07:00
parent be0ef80f73
commit 7ef01b36cb

View File

@ -16,13 +16,14 @@ tokens = {
}
token = os.getenv('DRAGON_ENV')
debug = token == 'test'
@client.event
async def on_ready():
print("\n********************************")
print("\nDRAGON BOT RUNNING IN {} MODE".format(token.upper()))
print("\n********************************")
if token == 'test':
if debug:
print("\nPress control+c to exit the bot")
print("Followed by control+d or by typing")
print("'exit' to exit the docker container")