cogs/help.py
async def help(self, ctx, *input):
        """Shows all modules of that bot"""

        prefix = '!!'
        version = '0.0.5'

        owner = 661157502989238282
        owner_name = 'aNOOBis#1420'

        if not input:
            try:
                owner = ctx.guild.get_member(owner).mention

            except AttributeError as e:
                owner = owner

            emb = discord.Embed(title='Commands and modules', color=0x1af1ad,
                                description=f'Use `{prefix}help <module>` to gain more information about that module '
                                            f':smiley:\n')

            cogs_desc = ''
            for cog in self.bot.cogs:
                cogs_desc += f'`{cog}` {self.bot.cogs[cog].__doc__}\n'

            emb.add_field(name='Modules', value=cogs_desc, inline=False)

            commands_desc = ''
            for command in self.bot.walk_commands():
                if not command.cog_name and not command.hidden:
                    commands_desc += f'{command.name} - {command.help}\n'

            if commands_desc:
                emb.add_field(name='Not belonging to a module', value=commands_desc, inline=False)

            emb.set_footer(text=f"Bot is running {version}")

        elif len(input) == 1:

            for cog in self.bot.cogs:
                if cog.lower() == input[0].lower():

                    emb = discord.Embed(title=f'{cog} - Commands', description=self.bot.cogs[cog].__doc__,
                                        color=0xdd64e8)

                    for command in self.bot.get_cog(cog).get_commands():
                        if not command.hidden:
                            emb.add_field(name=f"`{prefix}{command.name}`", value=command.help, inline=False)
                    break

            else:
                emb = discord.Embed(title="What's that?!",
                                    description=f"I've never heard from a module called `{input[0]}` before :scream:",
                                    color=0xff002a)

        elif len(input) > 1:
            emb = discord.Embed(title="That's too much.",
                                description="Please request only one module at once :sweat_smile:",
                                color=0xff002a)

        else:
            emb = discord.Embed(title="It's a magical place.",
                                description="Something went wrong",
                                color=0xff002a)

        # sending reply embed using our own function defined above
        await send_embed(ctx, emb)
Shows all modules of that bot
Shows all modules of that bot
Shows all modules of that bot
async def help(self, ctx, *input):
        prefix = '!!'
        version = '0.0.5'
        owner = 661157502989238282
        owner_name = 'aNOOBis#1420'
        if not input:
            try:
                owner = ctx.guild.get_member(owner).mention
            except AttributeError as e:
                owner = owner
            emb = discord.Embed(title='Commands and modules', color=0x1af1ad,
                                description=f'Use `{prefix}help <module>` to gain more information about that module '
                                            f':smiley:\n')
            cogs_desc = ''
            for cog in self.bot.cogs:
                cogs_desc += f'`{cog}` {self.bot.cogs[cog].__doc__}\n'
            emb.add_field(name='Modules', value=cogs_desc, inline=False)
            commands_desc = ''
            for command in self.bot.walk_commands():
                if not command.cog_name and not command.hidden:
                    commands_desc += f'{command.name} - {command.help}\n'
            if commands_desc:
                emb.add_field(name='Not belonging to a module', value=commands_desc, inline=False)
            emb.set_footer(text=f"Bot is running {version}")
        elif len(input) == 1:
            for cog in self.bot.cogs:
                if cog.lower() == input[0].lower():
                    emb = discord.Embed(title=f'{cog} - Commands', description=self.bot.cogs[cog].__doc__,
                                        color=0xdd64e8)
                    for command in self.bot.get_cog(cog).get_commands():
                        if not command.hidden:
                            emb.add_field(name=f"`{prefix}{command.name}`", value=command.help, inline=False)
                    break
            else:
                emb = discord.Embed(title="What's that?!",
                                    description=f"I've never heard from a module called `{input[0]}` before :scream:",
                                    color=0xff002a)
        elif len(input) > 1:
            emb = discord.Embed(title="That's too much.",
                                description="Please request only one module at once :sweat_smile:",
                                color=0xff002a)
        else:
            emb = discord.Embed(title="It's a magical place.",
                                description="Something went wrong",
                                color=0xff002a)
        await send_embed(ctx, emb)
async def help ( self , ctx , * input ) : prefix = '!!' version = '0.0.5' owner = 661157502989238282 owner_name = 'aNOOBis#1420' if not input : try : owner = ctx . guild . get_member ( owner ) . mention except AttributeError as e : owner = owner emb = discord . Embed ( title = 'Commands and modules' , color = 0x1af1ad , description = f'Use `{prefix}help <module>` to gain more information about that module ' f':smiley:\n' ) cogs_desc = '' for cog in self . bot . cogs : cogs_desc += f'`{cog}` {self.bot.cogs[cog].__doc__}\n' emb . add_field ( name = 'Modules' , value = cogs_desc , inline = False ) commands_desc = '' for command in self . bot . walk_commands ( ) : if not command . cog_name and not command . hidden : commands_desc += f'{command.name} - {command.help}\n' if commands_desc : emb . add_field ( name = 'Not belonging to a module' , value = commands_desc , inline = False ) emb . set_footer ( text = f"Bot is running {version}" ) elif len ( input ) == 1 : for cog in self . bot . cogs : if cog . lower ( ) == input [ 0 ] . lower ( ) : emb = discord . Embed ( title = f'{cog} - Commands' , description = self . bot . cogs [ cog ] . __doc__ , color = 0xdd64e8 ) for command in self . bot . get_cog ( cog ) . get_commands ( ) : if not command . hidden : emb . add_field ( name = f"`{prefix}{command.name}`" , value = command . help , inline = False ) break else : emb = discord . Embed ( title = "What's that?!" , description = f"I've never heard from a module called `{input[0]}` before :scream:" , color = 0xff002a ) elif len ( input ) > 1 : emb = discord . Embed ( title = "That's too much." , description = "Please request only one module at once :sweat_smile:" , color = 0xff002a ) else : emb = discord . Embed ( title = "It's a magical place." , description = "Something went wrong" , color = 0xff002a ) await send_embed ( ctx , emb )
Shows all modules of that bot
Shows all modules of that bot
"""Shows all modules of that bot""" # sending reply embed using our own function defined above

self
ctx