mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 11:40:12 +01:00
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:
@@ -8,16 +8,16 @@ from .tryitandsee import tryitandsee_command
|
||||
from .piracy import piracy_command
|
||||
from .keanu import keanu_command
|
||||
|
||||
class Miscellaneous(commands.GroupCog, name="miscellaneous"):
|
||||
class Miscellaneous(commands.GroupCog, name="misc"):
|
||||
def __init__(self, bot) -> None:
|
||||
self.bot = bot
|
||||
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):
|
||||
embed = discord.Embed(
|
||||
title="Miscellaneous Commands",
|
||||
description="Use `.miscellaneous <subcommand>` or `/miscellaneous <subcommand>`.",
|
||||
description="Use `.misc <subcommand>` or `/misc <subcommand>`.",
|
||||
color=0x7289DA
|
||||
)
|
||||
embed.set_author(name="Miscellaneous", icon_url="https://yes.nighty.works/raw/YxMC0r.png")
|
||||
|
||||
@@ -4,18 +4,19 @@ from discord.ext.commands import Context
|
||||
|
||||
from .translate import translate_command
|
||||
|
||||
class Utilities(commands.GroupCog, name="utilities"):
|
||||
class Utilities(commands.GroupCog, name="utils"):
|
||||
def __init__(self, bot) -> None:
|
||||
self.bot = bot
|
||||
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):
|
||||
embed = discord.Embed(
|
||||
title="Utilities Commands",
|
||||
description="Use `.utilities <subcommand>` or `/utilities <subcommand>`.",
|
||||
description="Use `.utils <subcommand>` or `/utils <subcommand>`.",
|
||||
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)
|
||||
await context.send(embed=embed)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user