cacassetout #1
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"]
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user