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
|
[ ] Fix logging and add graceful shutdown
|
||||||
|
|
||||||
|
[ ] Add video downloader commands (yt-dlp)
|
||||||
|
|
||||||
|
[ ] Add uptime checker for the bot iself
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Future
|
## Future
|
||||||
|
|
||||||
[ ] Add webhook support
|
[ ] Add webhook support
|
||||||
|
|
||||||
|
[ ] Make a web dashboard for the bot
|
||||||
@@ -13,7 +13,7 @@ class Help(commands.Cog, name="help"):
|
|||||||
interaction: discord.Interaction,
|
interaction: discord.Interaction,
|
||||||
current: str,
|
current: str,
|
||||||
) -> list[app_commands.Choice[str]]:
|
) -> list[app_commands.Choice[str]]:
|
||||||
categories = ["general", "fun", "moderation", "template", "owner", "sidestore"]
|
categories = ["general", "fun", "moderation", "owner", "sidestore"]
|
||||||
|
|
||||||
suggestions = []
|
suggestions = []
|
||||||
for category in categories:
|
for category in categories:
|
||||||
@@ -35,6 +35,7 @@ class Help(commands.Cog, name="help"):
|
|||||||
async def help(self, context: Context, category: str = None) -> None:
|
async def help(self, context: Context, category: str = None) -> None:
|
||||||
|
|
||||||
category_mapping = {
|
category_mapping = {
|
||||||
|
# General Commands
|
||||||
"help": "general",
|
"help": "general",
|
||||||
"botinfo": "general",
|
"botinfo": "general",
|
||||||
"serverinfo": "general",
|
"serverinfo": "general",
|
||||||
@@ -42,12 +43,14 @@ class Help(commands.Cog, name="help"):
|
|||||||
"feedback": "general",
|
"feedback": "general",
|
||||||
# "context_menus": "general",
|
# "context_menus": "general",
|
||||||
|
|
||||||
|
# Fun Commands
|
||||||
"randomfact": "fun",
|
"randomfact": "fun",
|
||||||
"coinflip": "fun",
|
"coinflip": "fun",
|
||||||
"rps": "fun",
|
"rps": "fun",
|
||||||
"8ball": "fun",
|
"8ball": "fun",
|
||||||
"minesweeper": "fun",
|
"minesweeper": "fun",
|
||||||
|
|
||||||
|
# Moderation Commands
|
||||||
"kick": "moderation",
|
"kick": "moderation",
|
||||||
"ban": "moderation",
|
"ban": "moderation",
|
||||||
"nick": "moderation",
|
"nick": "moderation",
|
||||||
@@ -56,6 +59,7 @@ class Help(commands.Cog, name="help"):
|
|||||||
"warnings": "moderation",
|
"warnings": "moderation",
|
||||||
"archive": "moderation",
|
"archive": "moderation",
|
||||||
|
|
||||||
|
# SideStore Commands
|
||||||
"sidestore": "sidestore",
|
"sidestore": "sidestore",
|
||||||
"refresh": "sidestore",
|
"refresh": "sidestore",
|
||||||
"code": "sidestore",
|
"code": "sidestore",
|
||||||
@@ -66,6 +70,7 @@ class Help(commands.Cog, name="help"):
|
|||||||
"sparse": "sidestore",
|
"sparse": "sidestore",
|
||||||
"afc": "sidestore",
|
"afc": "sidestore",
|
||||||
|
|
||||||
|
# Owner Commands
|
||||||
"sync": "owner",
|
"sync": "owner",
|
||||||
"cog_management": "owner",
|
"cog_management": "owner",
|
||||||
"shutdown": "owner",
|
"shutdown": "owner",
|
||||||
@@ -77,7 +82,6 @@ class Help(commands.Cog, name="help"):
|
|||||||
"general": "General commands",
|
"general": "General commands",
|
||||||
"fun": "Funny commands",
|
"fun": "Funny commands",
|
||||||
"moderation": "Administration commands",
|
"moderation": "Administration commands",
|
||||||
"template": "Template commands",
|
|
||||||
"owner": "Owner commands",
|
"owner": "Owner commands",
|
||||||
"sidestore": "SideStore troubleshooting 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
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
from discord.ext.commands import Context
|
||||||
|
|||||||
Reference in New Issue
Block a user