Suppression de toutes les références à LBI
This commit is contained in:
parent
018907f86b
commit
f6b5faf808
@ -1,15 +1,13 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
import typing
|
||||||
from typing import TYPE_CHECKING
|
|
||||||
|
|
||||||
from config.config_types.base_type import BaseType
|
from config.config_types.base_type import BaseType
|
||||||
|
if typing.TYPE_CHECKING:
|
||||||
if TYPE_CHECKING:
|
from bot_base import BotBase
|
||||||
from main import LBI
|
|
||||||
|
|
||||||
|
|
||||||
class Role(BaseType):
|
class Role(BaseType):
|
||||||
client: LBI
|
client: BotBase
|
||||||
|
|
||||||
def __init__(self, client):
|
def __init__(self, client):
|
||||||
self.value = None
|
self.value = None
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import TYPE_CHECKING
|
import typing
|
||||||
|
|
||||||
from config.config_types.base_type import BaseType
|
from config.config_types.base_type import BaseType
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from main import LBI
|
from bot_base import BotBase
|
||||||
|
|
||||||
class User(BaseType):
|
class User(BaseType):
|
||||||
|
|
||||||
client: LBI
|
client: BotBase
|
||||||
|
|
||||||
def __init__(self, client):
|
def __init__(self, client):
|
||||||
self.value = None
|
self.value = None
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
"level":"ERROR",
|
"level":"ERROR",
|
||||||
"handlers":["console", "info_file_handler", "error_file_handler"]
|
"handlers":["console", "info_file_handler", "error_file_handler"]
|
||||||
},
|
},
|
||||||
"LBI": {
|
"bot-base": {
|
||||||
"level":"DEBUG",
|
"level":"DEBUG",
|
||||||
"handlers":["console", "info_file_handler", "error_file_handler"]
|
"handlers":["console", "info_file_handler", "error_file_handler"]
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import os
|
|||||||
from bot_base.bot_base import BotBase
|
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
|
"""Setup logging configuration
|
||||||
"""
|
"""
|
||||||
path = default_path
|
path = default_path
|
||||||
|
Loading…
Reference in New Issue
Block a user