📜  python discord 知道来自 bot 的消息 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:06.827000             🧑  作者: Mango

代码示例1
def on_message(self, message):
    if (message.author.bot):
        return #if this is true: then it is by a bot.