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:
parent
150e0e92f6
commit
64fbb65bb1
4
bot.py
4
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:])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user