From a9abf5488a96a9d0482c6970d29ad57bed10441c Mon Sep 17 00:00:00 2001 From: neoarz Date: Fri, 19 Sep 2025 20:39:49 -0400 Subject: [PATCH] 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. --- cogs/general/help.py | 7 ++++++- cogs/idevice/idevice.py | 6 +++--- cogs/idevice/noapps.py | 2 +- cogs/miscellaneous/keanu.py | 24 +++++++++++++++++++++++- 4 files changed, 33 insertions(+), 6 deletions(-) diff --git a/cogs/general/help.py b/cogs/general/help.py index e7790fa..caf2c87 100644 --- a/cogs/general/help.py +++ b/cogs/general/help.py @@ -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" } diff --git a/cogs/idevice/idevice.py b/cogs/idevice/idevice.py index a47c834..b111619 100644 --- a/cogs/idevice/idevice.py +++ b/cogs/idevice/idevice.py @@ -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) diff --git a/cogs/idevice/noapps.py b/cogs/idevice/noapps.py index 8f52685..2e54b72 100644 --- a/cogs/idevice/noapps.py +++ b/cogs/idevice/noapps.py @@ -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() diff --git a/cogs/miscellaneous/keanu.py b/cogs/miscellaneous/keanu.py index b5383d3..bcd462a 100644 --- a/cogs/miscellaneous/keanu.py +++ b/cogs/miscellaneous/keanu.py @@ -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():