Python Discord Know Message de Bot

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