【发布时间】:2020-04-16 10:30:27
【问题描述】:
我正在尝试编写一个 Discord 机器人,它在读取其内容并将其存储在变量中后回复频道中的每条消息。它看起来像这样:
@bot.event
async def whenMessageSent()
i=readmessage()
print(i)
#replace WhenMessageSent and ReadMessage with the correct function names.
我需要找到正确的函数来替换“whenMessageSent”和“ReadMessage”。我正在使用最新的 Discord Python API,但没有任何文档可以帮助我解决这个问题。非常感谢任何帮助。
【问题讨论】: