示例#1
0
 async def search(self, ctx):
     if ctx.invoked_subcommand:
         return
     msg = "```\n"
     msg += "search\n"
     msg += extract_commands(self.search.commands, margin=" ")[1][:-2]
     msg += "```"
     await ctx.channel.send(msg)
示例#2
0
    async def react_role(self, ctx: Context):
        if ctx.invoked_subcommand:
            return
        msg = "```\n"
        msg += "reactrole\n"
        msg += extract_commands(self.react_role.commands, margin=" ")[1][:-2]
        msg += "```"

        await ctx.channel.send(msg)
    async def opt(self, ctx:Context):
        if ctx.invoked_subcommand:
            return
        msg = "```\n"
        msg += "opt\n"
        msg += extract_commands(self.opt.commands, margin=" ")[1][:-2]
        msg += "```"

        sent = await ctx.channel.send(msg)
        await delete_message(ctx, [ctx.message, sent])
示例#4
0
    async def update_react_role(self, ctx: Context):
        if ctx.invoked_subcommand:
            return
        msg = "```\n"
        msg += "update\n"
        msg += extract_commands(self.update_react_role.commands,
                                margin=" ")[1][:-2]
        msg += "```"

        await ctx.send(msg)
示例#5
0
    async def change_on_call(self, ctx: Context):
        if ctx.invoked_subcommand:
            return

        msg = "```\n"
        msg += "onCall\n"
        msg += extract_commands(self.change_on_call.commands,
                                margin=" ")[1][:-2]
        msg += "```"

        await ctx.channel.send(msg)