add command choice

This commit is contained in:
BFlow 2020-04-28 21:21:33 +02:00
parent a403422e10
commit ed125f7230

View file

@ -128,6 +128,11 @@ class Mybot(commands.Cog):
await asyncio.sleep(len(choix) / 4)
await ctx.channel.send(choix)
@commands.command(help='Faire des choix')
def choice(self, ctx, *words):
choices = random.choice(words)
await ctx.channel.send(choices)
@commands.command(help="optionnal args : ")
async def contrepeterie(self, ctx, *args):
response = None