mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 11:40:12 +01:00
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:
8
TODO.md
8
TODO.md
@@ -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
|
||||
|
||||
[ ] Make a web dashboard for the bot
|
||||
@@ -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,6 +35,7 @@ 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",
|
||||
@@ -42,12 +43,14 @@ class Help(commands.Cog, name="help"):
|
||||
"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"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user