mirror of
https://github.com/MrDetonia/Maki.git
synced 2024-11-13 00:26:53 -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"
|
name = "Maki"
|
||||||
|
|
||||||
# bot version
|
# bot version
|
||||||
version = "v0.7.4"
|
version = "v0.7.5"
|
||||||
|
|
||||||
# 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
|
||||||
@ -170,6 +170,8 @@ def on_message(message):
|
|||||||
yield from client.send_message(message.channel, 'user not seen yet')
|
yield from client.send_message(message.channel, 'user not seen yet')
|
||||||
|
|
||||||
elif message.content.startswith('.say'):
|
elif message.content.startswith('.say'):
|
||||||
|
# delete calling message for effect
|
||||||
|
yield from client.delete_message(message)
|
||||||
# echo message
|
# echo message
|
||||||
yield from client.send_message(message.channel, message.content[5:])
|
yield from client.send_message(message.channel, message.content[5:])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user