【发布时间】:2021-10-07 04:44:14
【问题描述】:
我正在使用 Python 编写一个 Discord 机器人,这是命令之一。
我希望机器人在我每次写“abc”时都回答“abc def”,但它一直在发送垃圾邮件“abc def”。
@commands.Cog.listener()
async def on_message(self, message):
if "abc" in message.content.lower():
await message.channel.send('abc def')
【问题讨论】:
标签: python discord discord.py bots