add command choice
This commit is contained in:
parent
a403422e10
commit
ed125f7230
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue