Answers for "discord.py commands.group"

1

discord.py commands.group

@bot.group()
async def git(ctx):
    if ctx.invoked_subcommand is None:
        await ctx.send('Invalid git command passed...')

@git.command()
async def push(ctx, remote: str, branch: str):
    await ctx.send('Pushing to {} {}'.format(remote, branch))
Posted by: Guest on April-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language