feat: Add aliases and update group names for cogs

Renamed 'miscellaneous' and 'utilities' cog group names to 'misc' and 'utils', respectively. Added aliases for command groups and updated help descriptions and embed author icons for consistency and clarity.
This commit is contained in:
neoarz
2025-09-29 09:19:00 -04:00
parent a67e80a6eb
commit f8123b43a2
2 changed files with 7 additions and 6 deletions

View File

@@ -8,16 +8,16 @@ from .tryitandsee import tryitandsee_command
from .piracy import piracy_command from .piracy import piracy_command
from .keanu import keanu_command from .keanu import keanu_command
class Miscellaneous(commands.GroupCog, name="miscellaneous"): class Miscellaneous(commands.GroupCog, name="misc"):
def __init__(self, bot) -> None: def __init__(self, bot) -> None:
self.bot = bot self.bot = bot
super().__init__() super().__init__()
@commands.group(name="miscellaneous", invoke_without_command=True) @commands.group(name="miscellaneous", aliases=["misc"], invoke_without_command=True)
async def miscellaneous_group(self, context: Context): async def miscellaneous_group(self, context: Context):
embed = discord.Embed( embed = discord.Embed(
title="Miscellaneous Commands", title="Miscellaneous Commands",
description="Use `.miscellaneous <subcommand>` or `/miscellaneous <subcommand>`.", description="Use `.misc <subcommand>` or `/misc <subcommand>`.",
color=0x7289DA color=0x7289DA
) )
embed.set_author(name="Miscellaneous", icon_url="https://yes.nighty.works/raw/YxMC0r.png") embed.set_author(name="Miscellaneous", icon_url="https://yes.nighty.works/raw/YxMC0r.png")

View File

@@ -4,18 +4,19 @@ from discord.ext.commands import Context
from .translate import translate_command from .translate import translate_command
class Utilities(commands.GroupCog, name="utilities"): class Utilities(commands.GroupCog, name="utils"):
def __init__(self, bot) -> None: def __init__(self, bot) -> None:
self.bot = bot self.bot = bot
super().__init__() super().__init__()
@commands.group(name="utilities", invoke_without_command=True) @commands.group(name="utilities", aliases=["utils"], invoke_without_command=True)
async def utilities_group(self, context: Context): async def utilities_group(self, context: Context):
embed = discord.Embed( embed = discord.Embed(
title="Utilities Commands", title="Utilities Commands",
description="Use `.utilities <subcommand>` or `/utilities <subcommand>`.", description="Use `.utils <subcommand>` or `/utils <subcommand>`.",
color=0x7289DA color=0x7289DA
) )
embed.set_author(name="Utilities", icon_url="https://yes.nighty.works/raw/8VLDcg.webp")
embed.add_field(name="Available", value="translate", inline=False) embed.add_field(name="Available", value="translate", inline=False)
await context.send(embed=embed) await context.send(embed=embed)