chore(idevice && keanu): read description

Added 'idevice' as a help category and updated related command references for consistency. The Keanu command now displays a random image from a predefined list instead of a static image.
This commit is contained in:
neoarz
2025-09-19 20:39:49 -04:00
parent 461affb32e
commit a9abf5488a
4 changed files with 33 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ class Help(commands.Cog, name="help"):
interaction: discord.Interaction,
current: str,
) -> list[app_commands.Choice[str]]:
categories = ["general", "fun", "moderation", "owner", "sidestore", "miscellaneous"]
categories = ["general", "fun", "moderation", "owner", "sidestore", "idevice", "miscellaneous"]
suggestions = []
for category in categories:
@@ -70,6 +70,10 @@ class Help(commands.Cog, name="help"):
"sparse": "sidestore",
"afc": "sidestore",
# iDevice Commands
"idevice": "idevice",
"noapps": "idevice",
# Owner Commands
"sync": "owner",
"cog_management": "owner",
@@ -87,6 +91,7 @@ class Help(commands.Cog, name="help"):
"moderation": "Administration commands",
"owner": "Owner commands",
"sidestore": "SideStore troubleshooting commands",
"idevice": "idevice troubleshooting commands",
"miscellaneous": "Miscellaneous commands"
}

View File

@@ -52,15 +52,15 @@ class Idevice(commands.Cog, name="idevice"):
self.bot = bot
@commands.hybrid_command(
name="idevice", description="iDevice troubleshooting and help"
name="idevice", description="idevice troubleshooting and help"
)
async def idevice(self, context: Context) -> None:
embed = discord.Embed(
title="iDevice Commands",
title="idevice Commands",
description="Choose a command from the dropdown below to get help with specific issues:",
color=0xfa8c4a
)
embed.set_author(name="iDevice", icon_url="https://yes.nighty.works/raw/snLMuO.png")
embed.set_author(name="idevice", icon_url="https://yes.nighty.works/raw/snLMuO.png")
view = IdeviceView(self.bot)

View File

@@ -25,7 +25,7 @@ class Noapps(commands.Cog, name="noapps"):
'More details can be found at [SideStore\'s official website](https://sidestore.io/)'
)
)
embed.set_author(name="iDevice", icon_url="https://yes.nighty.works/raw/snLMuO.png")
embed.set_author(name="idevice", icon_url="https://yes.nighty.works/raw/snLMuO.png")
embed.set_footer(text=f'Last Edited by neoarz')
embed.timestamp = discord.utils.utcnow()

View File

@@ -1,6 +1,7 @@
import discord
from discord.ext import commands
from discord.ext.commands import Context
import random
class Keanu(commands.Cog, name="keanu"):
@@ -12,12 +13,33 @@ class Keanu(commands.Cog, name="keanu"):
description="Reeves",
)
async def keanu(self, context: Context) -> None:
images = [
"https://yes.nighty.works/raw/z0HqUM.png",
"https://yes.nighty.works/raw/1Jc0j6.avif",
"https://yes.nighty.works/raw/uQyDyg.webp",
"https://yes.nighty.works/raw/LzrPZz.png",
"https://yes.nighty.works/raw/BZgKzR.jpg",
"https://yes.nighty.works/raw/xOzCta.jpg",
"https://yes.nighty.works/raw/eWvQa5.webp",
"https://yes.nighty.works/raw/Qg9HJr.webp",
"https://yes.nighty.works/raw/tYfOEn.webp",
"https://yes.nighty.works/raw/kZS1Mu.jpg",
"https://yes.nighty.works/raw/E83And.png",
"https://yes.nighty.works/raw/PRr6ln.jpg",
"https://yes.nighty.works/raw/ZlprB5.jpg",
"https://yes.nighty.works/raw/BvcXOg.jpg",
"https://yes.nighty.works/raw/C7gy4v.jpg",
"https://yes.nighty.works/raw/XqHg1q.jpg",
"https://yes.nighty.works/raw/RUXNK7.png",
"https://yes.nighty.works/raw/CBNs9L.jpg"
]
embed = discord.Embed(
description="## Reeves",
color=0x7289DA,
)
embed.set_author(name="Keanu", icon_url="https://yes.nighty.works/raw/YxMC0r.png")
embed.set_image(url="https://yes.nighty.works/raw/JqDYPJ.avif")
embed.set_image(url=random.choice(images))
if getattr(context, "interaction", None):
inter = context.interaction
if not inter.response.is_done():