Initial Template Commit

This commit is contained in:
2026-07-22 17:43:19 +03:00
commit d3dc9c09e3
11 changed files with 132 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
from typing import Optional
import asyncio
import discord
from discord.ext import commands as cmds
from discord import app_commands as appcmds
from meta import LionBot, LionCog, LionContext
from meta.logger import log_wrap
from utils.lib import utc_now
from ..data import AwesomeData
from ..awesome import AwesomeRegistry
class AwesomeCog(LionCog):
def __init__(self, bot: LionBot):
self.bot = bot
self.data = bot.db.load_registry(AwesomeData())
self.profiles = AwesomeRegistry(self.data)
async def cog_load(self):
await self.data.init()
await self.bot.version_check(*self.data.VERSION)
await self.profiles.init()