refactor(botinfo): now seperate command

This commit is contained in:
neoarz
2025-10-09 00:24:43 -04:00
parent 71cb384ff3
commit 50af638e2d
4 changed files with 31 additions and 22 deletions

View File

@@ -79,6 +79,18 @@ class Help(commands.Cog, name="help"):
)
embed.set_author(name="Help", icon_url="https://yes.nighty.works/raw/T9mnBO.png")
standalone_commands = []
botinfo_cmd = self.bot.tree.get_command("botinfo")
if botinfo_cmd:
standalone_commands.append("**/botinfo** » Get information about this bot")
if standalone_commands:
embed.add_field(
name="",
value="".join(standalone_commands) + "\n",
inline=False
)
available_categories = set()
for cog_name in self.bot.cogs:
mapped_category = category_mapping.get(cog_name.lower())