summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot.py4
-rw-r--r--check.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/bot.py b/bot.py
index e8801c9..08dfd82 100644
--- a/bot.py
+++ b/bot.py
@@ -21,6 +21,7 @@ import datetime
from pathlib import Path
from ATRI.utils.utils_yml import load_yaml
from nonebot.log import default_format, logger
+from nonebot.adapters.cqhttp import Bot as CQHTTPBot
COPYRIGHT = (r"""====================[ATRI | アトリ]====================
* Mirai + NoneBot2 + Python
@@ -49,6 +50,9 @@ nonebot.init(debug=bool(config['debug']),
command_sep=set(config['command_sep']))
app = nonebot.get_asgi()
+driver = nonebot.get_driver()
+driver.register_adapter("cqhttp", CQHTTPBot)
+
nonebot.load_plugins('ATRI/plugins')
logger.add(LOGGER_INFO_PATH,
diff --git a/check.py b/check.py
index a70d508..cb98011 100644
--- a/check.py
+++ b/check.py
@@ -88,7 +88,7 @@ class CheckATRI():
别吐槽 暴 力
'''
rely_list = [
- 'nonebot2', 'nonebot2[scheduler]', 'nonebot2[test]', 'nltk',
+ 'nonebot2', 'nonebot2[scheduler]', 'nonebot_plugin_apscheduler', 'nltk',
'requests', 'pillow', 'psutil'
]
rely_len = len(rely_list)