Files
holotech-plugin-template/plugin/discord/cog.py
T
2026-07-22 17:57:18 +03:00

27 lines
677 B
Python

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()