我正在使用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
discord.py ×1
python ×1
python-3.x ×1