Skip to content

Commit e84aeae

Browse files
committed
refractor: adapter 从 core 中抽离
1 parent 00b8527 commit e84aeae

File tree

13 files changed

+8
-8
lines changed

13 files changed

+8
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from ncatbot.utils import get_log, ncatbot_config
1616
from .utils import post_json
1717

18-
LOG = get_log("ncatbot.core.adapter.nc.auth")
18+
LOG = get_log("ncatbot.adapter.nc.auth")
1919

2020

2121
def gen_hashed_token(token: str) -> str:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from .constants import config as default_webui_config
1515
from .platform import PlatformOps
1616

17-
LOG = get_log("ncatbot.core.adapter.nc.config")
17+
LOG = get_log("ncatbot.adapter.nc.config")
1818

1919

2020
class ConfigManager:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from .config_manager import ConfigManager
1717
from .platform import PlatformOps, UnsupportedPlatformError
1818

19-
LOG = get_log("ncatbot.core.adapter.nc.service")
19+
LOG = get_log("ncatbot.adapter.nc.service")
2020

2121

2222
class NcatBotLoginError(NcatBotError):

ncatbot/core/client/lifecycle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from ncatbot.utils import get_log, ncatbot_config
1515
from ncatbot.utils.error import NcatBotError
16-
from ncatbot.core.adapter import launch_napcat_service
16+
from ncatbot.adapter import launch_napcat_service
1717

1818
if TYPE_CHECKING:
1919
from ncatbot.core.api import BotAPI

0 commit comments

Comments
 (0)