refactor(help): help command categories

Removed the 'template' category from help command suggestions and mappings, reorganized category mappings with comments, and cleaned up cogs/general/ping.py by removing header comments. Updated TODO.md with new tasks and future plans.
This commit is contained in:
neoarz
2025-09-18 17:33:27 -04:00
parent 63e49bcb7b
commit 7cb0f9dec0
3 changed files with 16 additions and 12 deletions

10
TODO.md
View File

@@ -12,7 +12,15 @@
[ ] Fix logging and add graceful shutdown
[ ] Add video downloader commands (yt-dlp)
[ ] Add uptime checker for the bot iself
## Future
[ ] Add webhook support
[ ] Add webhook support
[ ] Make a web dashboard for the bot

View File

@@ -13,7 +13,7 @@ class Help(commands.Cog, name="help"):
interaction: discord.Interaction,
current: str,
) -> list[app_commands.Choice[str]]:
categories = ["general", "fun", "moderation", "template", "owner", "sidestore"]
categories = ["general", "fun", "moderation", "owner", "sidestore"]
suggestions = []
for category in categories:
@@ -35,19 +35,22 @@ class Help(commands.Cog, name="help"):
async def help(self, context: Context, category: str = None) -> None:
category_mapping = {
# General Commands
"help": "general",
"botinfo": "general",
"serverinfo": "general",
"ping": "general",
"feedback": "general",
# "context_menus": "general",
# Fun Commands
"randomfact": "fun",
"coinflip": "fun",
"rps": "fun",
"8ball": "fun",
"minesweeper": "fun",
# Moderation Commands
"kick": "moderation",
"ban": "moderation",
"nick": "moderation",
@@ -56,6 +59,7 @@ class Help(commands.Cog, name="help"):
"warnings": "moderation",
"archive": "moderation",
# SideStore Commands
"sidestore": "sidestore",
"refresh": "sidestore",
"code": "sidestore",
@@ -66,6 +70,7 @@ class Help(commands.Cog, name="help"):
"sparse": "sidestore",
"afc": "sidestore",
# Owner Commands
"sync": "owner",
"cog_management": "owner",
"shutdown": "owner",
@@ -77,7 +82,6 @@ class Help(commands.Cog, name="help"):
"general": "General commands",
"fun": "Funny commands",
"moderation": "Administration commands",
"template": "Template commands",
"owner": "Owner commands",
"sidestore": "SideStore troubleshooting commands"
}

View File

@@ -1,11 +1,3 @@
"""
Copyright © Krypton 2019-Present - https://github.com/kkrypt0nn (https://krypton.ninja)
Description:
🐍 A simple template to start to code your own and personalized Discord bot in Python
Version: 6.4.0
"""
import discord
from discord.ext import commands
from discord.ext.commands import Context