【发布时间】:2021-08-13 22:58:20
【问题描述】:
我正在制作一个 Disord 机器人。我的代码没有问题,但是当我尝试更改命令(例如它的结构)并运行代码时,它就像我没有应用任何更改一样!例如:
if message.content.startswith("_hi"):
await message.channel.send("Hello!")
然后我将等待消息更改为另一个:
if message content.startswith("_hi"):
await message.channel.send("Hi there!")
而机器人响应是第一个变体。为什么?
当我写新的 if 消息时,情况相同。我认为机器人确实没有看到这一点。
【问题讨论】:
标签: python pycharm discord bots