diff options
-rw-r--r-- | bot.py | 4 | ||||
-rw-r--r-- | check.py | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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, @@ -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) |