rewrite (core): Refactor lion* classes.

This commit is contained in:
2023-03-08 11:57:53 +02:00
parent cf7558d030
commit 65a34852a0
7 changed files with 294 additions and 0 deletions

35
src/core/config.py Normal file
View File

@@ -0,0 +1,35 @@
from discord import app_commands as appcmds
from discord.ext import commands as cmds
from meta import LionBot, LionContext, LionCog
from babel.translator import LocalBabel
babel = LocalBabel('core_config')
_p = babel._p
class ConfigCog(LionCog):
"""
Core guild config cog.
Primarily used to expose the `configure` base command group at a high level.
"""
def __init__(self, bot: LionBot):
self.bot = bot
async def cog_load(self):
...
async def cog_unload(self):
...
@cmds.hybrid_group(
name=_p('group:configure', "configure"),
)
@appcmds.guild_only
async def configure_group(self, ctx: LionContext):
"""
Bare command group, has no function.
"""
return