mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 11:40:12 +01:00
feat(legal): new command :)
Co-authored-by: Stossy11 <stossy11@stossy11.com> Co-authored-by: neoarz <tyrantneo740@gmail.com>
This commit is contained in:
@@ -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'")
|
||||
|
||||
Reference in New Issue
Block a user