refactor(idevice): commands into a single GroupCog

Merged idevice-related commands into a unified GroupCog in cogs/idevice/__init__.py, replacing individual Cog classes with command factory functions. Updated bot.py and help.py to support the new structure and improved command categorization. This refactor simplifies extension loading and command management for idevice troubleshooting features.
This commit is contained in:
neoarz
2025-09-28 22:57:26 -04:00
parent 72cdd9b403
commit 51393ece85
8 changed files with 110 additions and 98 deletions

View File

@@ -5,14 +5,11 @@ from discord.ext.commands import Context
import time
class Noapps(commands.Cog, name="noapps"):
def __init__(self, bot) -> None:
self.bot = bot
def noapps_command():
@commands.hybrid_command(
name="noapps", description="Help when apps aren't showing in installed apps view"
)
async def noapps(self, context: Context) -> None:
async def noapps(self, context):
embed = discord.Embed(
color=0xfa8c4a,
description=(
@@ -41,7 +38,5 @@ class Noapps(commands.Cog, name="noapps"):
await context.interaction.response.send_message(embed=embed, view=view)
else:
await context.send(embed=embed, view=view)
async def setup(bot) -> None:
await bot.add_cog(Noapps(bot))
return noapps