def choose(self, ctx, *choices: commands.clean_content):
"""Chooses between a list of choices.
If one of your choices requires a space, it must be wrapped in quotes.
"""
if len(set(choices)) < 2:
return await ctx.send('I need more choices than that...')
with ctx.channel.typing():
msg = await ctx.send('\N{THINKING FACE}')
await asyncio.sleep(random.uniform(0.25, 1))
await msg.edit(content=random.choice(choices))
评论列表
文章目录