diff --git a/src/config/config_types/discord_types/role.py b/src/config/config_types/discord_types/role.py index 3d600fb..a468b57 100644 --- a/src/config/config_types/discord_types/role.py +++ b/src/config/config_types/discord_types/role.py @@ -1,15 +1,13 @@ from __future__ import annotations - -from typing import TYPE_CHECKING +import typing from config.config_types.base_type import BaseType - -if TYPE_CHECKING: - from main import LBI +if typing.TYPE_CHECKING: + from bot_base import BotBase class Role(BaseType): - client: LBI + client: BotBase def __init__(self, client): self.value = None diff --git a/src/config/config_types/discord_types/user.py b/src/config/config_types/discord_types/user.py index 2c53a87..1b98fad 100644 --- a/src/config/config_types/discord_types/user.py +++ b/src/config/config_types/discord_types/user.py @@ -1,15 +1,15 @@ from __future__ import annotations -from typing import TYPE_CHECKING +import typing from config.config_types.base_type import BaseType -if TYPE_CHECKING: - from main import LBI +if typing.TYPE_CHECKING: + from bot_base import BotBase class User(BaseType): - client: LBI + client: BotBase def __init__(self, client): self.value = None diff --git a/src/config/log_config.json b/src/config/log_config.json index e0954b0..6ef8d66 100644 --- a/src/config/log_config.json +++ b/src/config/log_config.json @@ -41,7 +41,7 @@ "level":"ERROR", "handlers":["console", "info_file_handler", "error_file_handler"] }, - "LBI": { + "bot-base": { "level":"DEBUG", "handlers":["console", "info_file_handler", "error_file_handler"] } diff --git a/src/main.py b/src/main.py index c9564fc..ca82e93 100644 --- a/src/main.py +++ b/src/main.py @@ -7,7 +7,7 @@ import os from bot_base.bot_base import BotBase -def setup_logging(default_path='data/log_config.json', default_level=logging.INFO, env_key='LBI_LOG_CONFIG'): +def setup_logging(default_path='data/log_config.json', default_level=logging.INFO, env_key='BOT_BASE_LOG_CONFIG'): """Setup logging configuration """ path = default_path