some code changes
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import logging
|
||||
|
||||
import disnake
|
||||
from disnake import Option, OptionType, Colour
|
||||
from disnake.ext import commands
|
||||
|
||||
from lib.Comands import write_json
|
||||
from lib.DB import work_with_db, read_db
|
||||
from lib import read_db
|
||||
from lib import logger
|
||||
|
||||
|
||||
class General(commands.Cog):
|
||||
@@ -14,7 +13,7 @@ class General(commands.Cog):
|
||||
|
||||
@commands.Cog.listener() # this is a decorator for events/listeners
|
||||
async def on_ready(self):
|
||||
logging.info(f'Cog {__name__.split(".")[1]} is ready!.')
|
||||
logger.info(f'Cog {__name__.split(".")[1]} is ready!.')
|
||||
|
||||
@commands.slash_command(
|
||||
name="info",
|
||||
|
||||
Reference in New Issue
Block a user