mirror of
https://github.com/MrDetonia/Maki.git
synced 2024-11-22 11:54:16 -05:00
Print who killed bot to STDOUT, v0.12.1
This commit is contained in:
parent
24498b5f1d
commit
130b9b80d1
3
bot.py
3
bot.py
@ -27,7 +27,7 @@ from secret import email,pwd
|
|||||||
name = "Maki"
|
name = "Maki"
|
||||||
|
|
||||||
# bot version
|
# bot version
|
||||||
version = "v0.12.0"
|
version = "v0.12.1"
|
||||||
|
|
||||||
# text shown by .help command
|
# text shown by .help command
|
||||||
helptext = """I am a bot written in Python by MrDetonia
|
helptext = """I am a bot written in Python by MrDetonia
|
||||||
@ -205,6 +205,7 @@ def on_message(message):
|
|||||||
elif message.content.startswith('.die'):
|
elif message.content.startswith('.die'):
|
||||||
if message.author.id in admins:
|
if message.author.id in admins:
|
||||||
# exit discord and kill bot
|
# exit discord and kill bot
|
||||||
|
print('INFO: Accepting .die from ' + message.author.name)
|
||||||
yield from client.send_message(message.channel, 'But will I dream? ;_;')
|
yield from client.send_message(message.channel, 'But will I dream? ;_;')
|
||||||
yield from client.logout()
|
yield from client.logout()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user