diff --git a/pocketbot.py b/pocketbot.py index 730e7a9..6313a14 100644 --- a/pocketbot.py +++ b/pocketbot.py @@ -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')