【发布时间】:2019-08-22 03:10:45
【问题描述】:
我正试图让机器人对添加的每个绿色复选标记反应都说些什么。我已经让机器人等待反应,但是它只允许来自一个用户的一个反应,我希望它添加一个反应,它会做一些当前代码;
@commands.command(pass_context=True)
async def br(self, ctx):
msg = await self.Nao.say('Please the reaction I have added.')
await self.Nao.add_reaction(msg, '✅')
res = await self.Nao.wait_for_reaction('✅')
但是我希望它允许多个反应而不是一个用户。因此,对于添加的每个反应,它都会显示 {USER.MENTION} 添加了一个反应!
【问题讨论】:
标签: python-3.x discord.py