From 7ef01b36cb2d5a450d79123ff42918fdf2ce4fdc Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Thu, 10 Aug 2017 14:44:13 -0700 Subject: [PATCH] Adding debug mode --- app/dragon-bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/dragon-bot.py b/app/dragon-bot.py index 005d4138..8979b2b5 100644 --- a/app/dragon-bot.py +++ b/app/dragon-bot.py @@ -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")