refactor(sidestore): commands into single GroupCog

Converted individual sidestore command cogs into functions and grouped them under a new Sidestore GroupCog in cogs/sidestore/__init__.py. Updated bot.py and help.py to recognize the new 'sidestore' category. This simplifies command registration and improves maintainability.
This commit is contained in:
neoarz
2025-09-28 23:28:53 -04:00
parent 5e2999e565
commit 3bc5ebe192
13 changed files with 137 additions and 74 deletions

View File

@@ -5,14 +5,11 @@ from discord.ext.commands import Context
import time
class Crash(commands.Cog, name="crash"):
def __init__(self, bot) -> None:
self.bot = bot
def crash_command():
@commands.hybrid_command(
name="crash", description="Help with SideStore crashing issues"
)
async def crash(self, context: Context) -> None:
async def crash(self, context):
embed = discord.Embed(
color=0x8e82f9,
description=(
@@ -43,5 +40,4 @@ class Crash(commands.Cog, name="crash"):
await context.send(embed=embed, view=view)
async def setup(bot) -> None:
await bot.add_cog(Crash(bot))
return crash