mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 19:07:52 +00:00
Removed help command
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
import typing
|
||||
|
||||
from discord import app_commands
|
||||
from discord import Interaction
|
||||
import humanize
|
||||
import lavalink
|
||||
|
||||
import cogs.music.helper as music_helper
|
||||
from utils.embed import create_embed
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
@@ -24,33 +21,6 @@ class InfoCommands(app_commands.Group):
|
||||
embed.description = f"[{self.bot.invite_link}]({self.bot.invite_link})"
|
||||
await ctx.response.send_message(embed=embed)
|
||||
|
||||
@app_commands.command(
|
||||
name="help", description="In case you cannot find what you want"
|
||||
)
|
||||
async def about(self, ctx: Interaction):
|
||||
embed = create_embed(ctx.user)
|
||||
|
||||
info = self.bot.config["info"]
|
||||
embed.title = info["name"] + " help"
|
||||
embed.description = info["description"]
|
||||
|
||||
display_cogs = {
|
||||
"Information": ":information_source:",
|
||||
"Music": ":musical_note:",
|
||||
"Settings": ":gear:",
|
||||
}
|
||||
|
||||
for cog_name, cog_icon in display_cogs.items():
|
||||
cog = self.bot.cogs.get(cog_name)
|
||||
if not cog:
|
||||
continue
|
||||
cogname_str = f"{cog_icon} {cog_name}"
|
||||
commands = [f"`{cmd.name}`" for cmd in cog.get_commands() if not cmd.hidden]
|
||||
commands_str = ", ".join(commands)
|
||||
embed.add_field(name=cogname_str, value=commands_str, inline=False)
|
||||
|
||||
await ctx.response.send_message(embed=embed)
|
||||
|
||||
@app_commands.command(
|
||||
name="stats", description="Some node/server/player information"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user