summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-12-06 16:48:44 +0800
committerKyomotoi <[email protected]>2020-12-06 16:48:44 +0800
commit9ac2c2eb7ef2eb267e926d599dc077f5afae98f9 (patch)
tree0493542eaad7d15b252b5a2da52db7329c7a3668
parentdc4fd407386522bca6bae22933ac1c6f17d1f16d (diff)
downloadATRI-9ac2c2eb7ef2eb267e926d599dc077f5afae98f9.tar.gz
ATRI-9ac2c2eb7ef2eb267e926d599dc077f5afae98f9.tar.bz2
ATRI-9ac2c2eb7ef2eb267e926d599dc077f5afae98f9.zip
[Update]
-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)