Adding debug mode
This commit is contained in:
parent
be0ef80f73
commit
7ef01b36cb
@ -16,13 +16,14 @@ tokens = {
|
|||||||
}
|
}
|
||||||
token = os.getenv('DRAGON_ENV')
|
token = os.getenv('DRAGON_ENV')
|
||||||
|
|
||||||
|
debug = token == '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(token.upper()))
|
||||||
print("\n********************************")
|
print("\n********************************")
|
||||||
|
|
||||||
if token == 'test':
|
if debug:
|
||||||
print("\nPress control+c to exit the bot")
|
print("\nPress control+c to exit the bot")
|
||||||
print("Followed by control+d or by typing")
|
print("Followed by control+d or by typing")
|
||||||
print("'exit' to exit the docker container")
|
print("'exit' to exit the docker container")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user