Python Discord Know Mensaje de Bot

def on_message(self, message):
    if (message.author.bot):
        return #if this is true: then it is by a bot.
Arno Deceuninck