mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
refactor(moderation): commands into group cog
Converted individual moderation command cogs (ban, kick, purge, warnings, archive, hackban, nick) into command factory functions and registered them under a new Moderation GroupCog in cogs/moderation/__init__.py. Updated bot.py and help.py to support the new moderation group and category. This improves organization and enables grouped moderation commands.
This commit is contained in:
@@ -79,11 +79,7 @@ class Help(commands.Cog, name="help"):
|
||||
"translate": "utilities",
|
||||
|
||||
# Miscellaneous Commands
|
||||
"keanu": "miscellaneous",
|
||||
"labubu": "miscellaneous",
|
||||
"piracy": "miscellaneous",
|
||||
"tryitandsee": "miscellaneous",
|
||||
"rr": "miscellaneous",
|
||||
"miscellaneous": "miscellaneous",
|
||||
}
|
||||
|
||||
category_descriptions = {
|
||||
@@ -170,7 +166,7 @@ class Help(commands.Cog, name="help"):
|
||||
commands_in_category.append((app_command.name, description))
|
||||
seen_names.add(app_command.name)
|
||||
|
||||
if hasattr(app_command, 'commands') and category in ["fun", "general", "idevice"]:
|
||||
if hasattr(app_command, 'commands') and category in ["fun", "general", "idevice", "miscellaneous", "moderation"]:
|
||||
for subcommand in app_command.commands:
|
||||
if subcommand.name in seen_names:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user