mirror of
https://github.com/MrDetonia/Maki.git
synced 2024-11-26 04:57:18 -05:00
Maki refuses to die if user is not admin instead of simply ignoring, v0.7.1
This commit is contained in:
parent
57bd0c94b2
commit
c6f31461e7
16
bot.py
16
bot.py
@ -23,7 +23,7 @@ from secret import email,pwd
|
|||||||
name = "Maki"
|
name = "Maki"
|
||||||
|
|
||||||
# bot version
|
# bot version
|
||||||
version = "v0.7.0"
|
version = "v0.7.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
|
||||||
@ -129,12 +129,14 @@ def on_message(message):
|
|||||||
# link to source code
|
# link to source code
|
||||||
yield from client.send_message(message.channel, 'These are my insides: <http://27b-a.xyz/mrdetonia/Maki>')
|
yield from client.send_message(message.channel, 'These are my insides: <http://27b-a.xyz/mrdetonia/Maki>')
|
||||||
|
|
||||||
elif message.content.startswith('.die') and message.author.id in admins:
|
elif message.content.startswith('.die'):
|
||||||
# exit discord and kill bot
|
if message.author.id in admins:
|
||||||
yield from client.send_message(message.channel, 'But will I dream? ;_;')
|
# exit discord and kill bot
|
||||||
|
yield from client.send_message(message.channel, 'But will I dream? ;_;')
|
||||||
# logout of Discord and exit
|
yield from client.logout()
|
||||||
yield from client.logout()
|
else:
|
||||||
|
# user not admin, refuse
|
||||||
|
yield from client.send_message(message.channel, 'Don\'t be so rude! >:(')
|
||||||
|
|
||||||
elif message.content.startswith('.whoami'):
|
elif message.content.startswith('.whoami'):
|
||||||
# show info about user
|
# show info about user
|
||||||
|
Loading…
Reference in New Issue
Block a user