rewrite: Tasklist module.
This commit is contained in:
10
bot/modules/config/__init__.py
Normal file
10
bot/modules/config/__init__.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import logging
|
||||
from babel.translator import LocalBabel
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
babel = LocalBabel('config')
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
from .cog import ConfigCog
|
||||
await bot.add_cog(ConfigCog(bot))
|
||||
30
bot/modules/config/cog.py
Normal file
30
bot/modules/config/cog.py
Normal file
@@ -0,0 +1,30 @@
|
||||
import discord
|
||||
from discord import app_commands as appcmds
|
||||
from discord.ext import commands as cmds
|
||||
|
||||
from meta import LionBot, LionContext, LionCog
|
||||
|
||||
from . import babel
|
||||
|
||||
_p = babel._p
|
||||
|
||||
|
||||
class ConfigCog(LionCog):
|
||||
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
|
||||
Reference in New Issue
Block a user