make the bot ignore messages it sent
parent
c753214317
commit
189a091d67
|
@ -46,6 +46,10 @@ def on_ready():
|
|||
@asyncio.coroutine
|
||||
def on_message(message):
|
||||
|
||||
#Ignore messages from self
|
||||
if message.author == client.user:
|
||||
return
|
||||
|
||||
#Maki Monday praise command
|
||||
if (message.content.lower().startswith('!maki')) or (message.content.lower().startswith('!monday')):
|
||||
yield from client.send_message(message.channel, 'http://maki.pocketjawa.com/monday.png')
|
||||
|
|
Loading…
Reference in New Issue