feat(legal): new command :)

Co-authored-by: Stossy11 <stossy11@stossy11.com>
Co-authored-by: neoarz <tyrantneo740@gmail.com>
This commit is contained in:
Stossy11
2025-10-20 02:36:02 +11:00
committed by GitHub
parent 4b651420a0
commit 5fb7c1b48b
6 changed files with 88 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ from discord.ext.commands import Context
from .melonx import MelonxView
from .transfer import transfer_command
from .mods import mods_command
from .legal import legal_command
from .gamecrash import crash_command
from .requirements import requirements_command
from .error import error_command
@@ -45,6 +46,10 @@ class Melonx(commands.GroupCog, name="melonx"):
async def melonx_group_transfer(self, context: Context):
await self._invoke_hybrid(context, "transfer")
@melonx_group.command(name="legal")
async def melonx_group_legal(self, context: Context):
await self._invoke_hybrid(context, "legal")
@melonx_group.command(name="mods")
async def melonx_group_mods(self, context: Context):
await self._invoke_hybrid(context, "mods")
@@ -112,6 +117,14 @@ class Melonx(commands.GroupCog, name="melonx"):
async def mods(self, context):
return await mods_command()(self, context)
@commands.check(_require_group_prefix)
@commands.hybrid_command(
name="legal",
description="Legality of emulators"
)
async def legal(self, context):
return await legal_command()(self, context)
@commands.check(_require_group_prefix)
@commands.hybrid_command(
name="gamecrash",
@@ -155,3 +168,4 @@ async def setup(bot) -> None:
bot.logger.info("Loaded extension 'melonx.requirements'")
bot.logger.info("Loaded extension 'melonx.error'")
bot.logger.info("Loaded extension 'melonx.26'")
bot.logger.info("Loaded extension 'melonx.legal'")