【发布时间】:2018-08-09 18:00:35
【问题描述】:
我正在尝试用 python 编写我的第一个 discord 机器人,我需要一些帮助来处理这段代码,请记住我是 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”,我希望机器人写“example2 @user”
【问题讨论】:
标签: python discord.py