#help

1 messages · Page 1 of 1 (latest)

dull flax
#

hey

#

It sends into different embeds instead of the same

glad birch
#

Because that's what you asked it to do blobpain

#

You are sending the embed inside the loop

#

Also, why use aiter when bot.cogs is a simple list ?

#

Just use a normal for loop

dull flax
#

do i fix

#

then

#

lmaoo

#

@glad birch

#

need suggestions

glad birch
dull flax
#

async for cog in self.context.bot.cogs:

glad birch
#

Keep appending to a string inside a loop, and send the embed after the loop

glad birch
#

No need for async

dull flax
#
        async for cog in self.context.bot.cogs:
                continue
            embed = discord.Embed(description=f"\n\n{', '.join([cmd.name.replace('_', '') async for cmd in cog if 'help' not in cmd.name])}\n\n")
            await self.context.send(embed=embed)
dull flax
glad birch
glad birch
dull flax
#

I already removed it

#
class help(commands.HelpCommand):
    async def send_bot_help(self, mapping):

        for cog in self.context.bot.cogs:
            if cog.qualified_name in ["Jishaku"]:
                continue
            embed = discord.Embed(color=co, description=f"\n\n{', '.join([cmd.name.replace('_', '') for cmd in cog if 'help' not in cmd.name])}\n\n")
            await self.context.send(embed=embed)
glad birch
#

This will still send multiple embeds for each cog

dull flax
#

well

#

It didn't send anything

#

actually

#

also No error

glad birch
#

You want to do smth like this

a = ""
for cog in bot.cogs:
    a += "..."

embed = ...
await ctx.send(...)
dull flax
#

help menu

glad birch
glad birch
dull flax
#

Nothing

#

is working

#

@glad birch

glad birch
#

did you even read the example i sent?

dull flax
glad birch
dull flax
glad birch
#

did you pogbruh

dull flax
glad birch
#

where is this part ```py
a = ""
for cog in bot.cogs:
a += "..."

dull flax
#

for cog in self.context.bot.cogs

#

is there

#

I Just don't understand what

#
a = ""
  a += ""
#

is for

#

@glad birch

warm dawn
#
class help(commands.HelpCommand):
    async def send_bot_help(self, mapping):
        description = ''
        for cog in utils.aiter(self.context.bot.cogs):
            cog = self.context.bot.get_cog(cog)
            if cog.qualified_name in ["Jishaku"]:
                continue
            if cog.get_commands():
                description+=f"\n\n{', '.join([cmd.name.replace('_', '') for cmd in utils.aiter(cog.get_commands()) if 'help' not in cmd.name])}\n\n")
embed = discord.Embed(description=description)
await self.context.send(embed=embed)
glad birch
glad birch
#

.lp

vast oasisBOT
#
glad birch
#

?tag python

swift ridgeBOT
#

its is very difficult to help you if you don't understand python first.
As it stands, you do not or cannot show that you understand the basic fundamentals of Python. Please continue to learn Python first, as pycord is a Python framework and as such requires that you have a confident grasp on these fundamentals . For now, pause your current project and when you have learned enough Python you can then pick it back up and continue where you left off (if at all possible).** You cannot drive a truck if you do not know how to drive at all.**

cool free resources are
w3school
freecodecamp.org

there are also a lot of python programming tutorials out there a youtube search will give a lot awesome content. If you need help with python there is a python server for that where they will be more that happy to help you with these thing, you can also ask for python help in #881309540639997952.

python server: https://discord.gg/python