Added slash-commands to reload all cogs aswell as print general information
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
import logging
|
||||
|
||||
class Base_Cog(commands.Cog):
|
||||
def __init__(self, logger:logging.Logger):
|
||||
self._logger = logger
|
||||
|
||||
async def cog_load(self):
|
||||
self._logger.debug(f"Cog for the '{self.__class__.__name__}' command got loaded")
|
||||
|
||||
async def cog_unload(self):
|
||||
self._logger.debug(f"Cog for the '{self.__class__.__name__}' command got unloaded")
|
||||
Reference in New Issue
Block a user