0.3.3, 修复配置文件不兼容问题(

This commit is contained in:
shenjack 2024-02-20 20:59:59 +08:00
parent 34ed6d1841
commit e0a7988c1a
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 4 additions and 2 deletions

View File

@ -77,11 +77,13 @@ class NewMessage(Options):
class BotConfig(Options): class BotConfig(Options):
name = 'icalingua bot config' name = 'icalingua bot config'
# _check_filled = True # _check_filled = True
host: str
private_key: str private_key: str
host: str
self_id: int self_id: int
notice_room: List[int] notice_room: List[int]
notice_start: bool = False notice_start: bool = False
admin_list: List[int]
py_plugin_path: str
def init(self, **kwargs) -> None: def init(self, **kwargs) -> None:
if self.notice_room is None: if self.notice_room is None:

View File

@ -6,7 +6,7 @@ from lib_not_dr.loggers import config
from data_struct import get_config, BotConfig, BotStatus from data_struct import get_config, BotConfig, BotStatus
_version_ = "0.3.2" _version_ = "0.3.3"
logger = config.get_logger("bot") logger = config.get_logger("bot")