1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 22:27:28 +00:00

Added ignoring of bot messages in on_message

This commit is contained in:
Myned 2017-11-20 11:27:52 -05:00
parent a88256031a
commit a9491dacb7

View file

@ -101,7 +101,7 @@ async def on_ready():
@bot.event @bot.event
async def on_message(message): async def on_message(message):
if message.author is not bot.user: if message.author is not bot.user and not message.author.bot:
await bot.process_commands(message) await bot.process_commands(message)