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

@@ -107,14 +107,11 @@ class SidestoreView(discord.ui.View):
self.add_item(SidestoreSelect(bot))
class Sidestore(commands.Cog, name="sidestore"):
def __init__(self, bot) -> None:
self.bot = bot
def sidestore_command():
@commands.hybrid_command(
name="sidestore", description="SideStore troubleshooting and help"
)
async def sidestore(self, context: Context) -> None:
async def sidestore(self, context):
embed = discord.Embed(
title="SideStore Commands",
description="Choose a command from the dropdown below to get help with specific issues:",
@@ -128,7 +125,5 @@ class Sidestore(commands.Cog, name="sidestore"):
await context.interaction.response.send_message(embed=embed, view=view, ephemeral=True)
else:
await context.send(embed=embed, view=view)
async def setup(bot) -> None:
await bot.add_cog(Sidestore(bot))
return sidestore