1
0
mirror of https://github.com/MrDetonia/Maki.git synced 2024-11-29 05:55:28 -05:00

Delete messages that use the .say command, v0.7.5

This commit is contained in:
Zac Herd 2016-04-01 13:43:26 +01:00
parent 150e0e92f6
commit 64fbb65bb1

4
bot.py
View File

@ -23,7 +23,7 @@ from secret import email,pwd
name = "Maki"
# bot version
version = "v0.7.4"
version = "v0.7.5"
# text shown by .help command
helptext = """I am a bot written in Python by MrDetonia
@ -170,6 +170,8 @@ def on_message(message):
yield from client.send_message(message.channel, 'user not seen yet')
elif message.content.startswith('.say'):
# delete calling message for effect
yield from client.delete_message(message)
# echo message
yield from client.send_message(message.channel, message.content[5:])