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 Udid(commands.Cog, name="udid"):
def __init__(self, bot) -> None:
self.bot = bot
def udid_command():
@commands.hybrid_command(
name="udid", description="SideStore could not determine device UDID"
)
async def udid(self, context: Context) -> None:
async def udid(self, context):
embed = discord.Embed(
color=0x8e82f9,
description=(
@@ -45,5 +42,4 @@ class Udid(commands.Cog, name="udid"):
await context.send(embed=embed, view=view)
async def setup(bot) -> None:
await bot.add_cog(Udid(bot))
return udid