From 64fbb65bb1f5deb6bf58614150350a5410f703dd Mon Sep 17 00:00:00 2001 From: Zac Herd Date: Fri, 1 Apr 2016 13:43:26 +0100 Subject: [PATCH] Delete messages that use the .say command, v0.7.5 --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 8a62988..e880f14 100644 --- a/bot.py +++ b/bot.py @@ -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:])