discord py commands group

Solutions on MaxInterview for discord py commands group by the best coders in the world

showing results for - "discord py commands group"
Lou
04 Jun 2018
1@bot.group()
2async def git(ctx):
3    if ctx.invoked_subcommand is None:
4        await ctx.send('Invalid git command passed...')
5
6@git.command()
7async def push(ctx, remote: str, branch: str):
8    await ctx.send('Pushing to {} {}'.format(remote, branch))