diff options
Diffstat (limited to 'ATRI/__init__.py')
-rw-r--r-- | ATRI/__init__.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/ATRI/__init__.py b/ATRI/__init__.py index 5e9db56..5346a7a 100644 --- a/ATRI/__init__.py +++ b/ATRI/__init__.py @@ -1,13 +1,11 @@ from time import sleep import nonebot -from nonebot.adapters.cqhttp import Bot as ATRIBot +from nonebot.adapters.onebot.v11 import Adapter from .config import RUNTIME_CONFIG -from .log import logger - -__version__ = "YHN-001-A04" +__version__ = "YHN-001-A05" def asgi(): @@ -20,12 +18,11 @@ def driver(): def init(): nonebot.init(**RUNTIME_CONFIG) - driver().register_adapter("cqhttp", ATRIBot) + driver().register_adapter(Adapter) nonebot.load_plugins("ATRI/plugins") - if RUNTIME_CONFIG["debug"]: - nonebot.load_plugin("nonebot_plugin_test") + nonebot.load_plugin("nonebot_plugin_gocqhttp") sleep(3) -def run(app): - nonebot.run(app=app) +def run(): + nonebot.run() |