小编Eri*_*son的帖子

如何使我的Python Discord bot检查机器人本身是否发送了一条消息?

我正在使用Python(v.3.6.1)编写Discord bot,它检测通道中发送的所有消息并在同一通道中回复它们.但是,机器人自己回复消息,导致无限循环.

@bot.event async def on_message(message) await bot.send_message(message.channel, message.content)

我该如何解决这个问题?

python python-3.x discord.py

6
推荐指数
2
解决办法
3097
查看次数

标签 统计

discord.py ×1

python ×1

python-3.x ×1