我正在尝试用python编写我的第一个discord bot,我需要一些关于这段代码的帮助,请记住,我是python的新手,大约2周前开始学习。你知道吗
@bot.event
async def on_message(message):
content = message.content
author = message.author
if content == "example yes":
bot.say("example @%s" % (author))
如果用户说“example yes”,我希望bot写“example2@user”
你不是} 属性代替)
await
在bot.say
,这不是你提到用户的方式(你用^{相关问题 更多 >
编程相关推荐