summaryrefslogtreecommitdiff
path: root/ATRI/plugins/plugin_rich/__init__.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-11-22 01:01:43 +0800
committerKyomotoi <[email protected]>2020-11-22 01:01:43 +0800
commitf7198e8722f310926cf147bd0b218c5d9ef5d6c3 (patch)
treef4c3d0f2a003695b67e0e2018ec8d88898bcda90 /ATRI/plugins/plugin_rich/__init__.py
parent6c3e4c7f583be0006cd7bb913b7db81b987d2813 (diff)
downloadATRI-f7198e8722f310926cf147bd0b218c5d9ef5d6c3.tar.gz
ATRI-f7198e8722f310926cf147bd0b218c5d9ef5d6c3.tar.bz2
ATRI-f7198e8722f310926cf147bd0b218c5d9ef5d6c3.zip
[Update]
新增: * 舆情检测 * 对涩图加以调用限制 修复: * Pixiv插件全体 * 储存群聊信息时无法创建文件 优化: * 部分代码重构,效率up * 调整插件结构,使其看起来更舒服
Diffstat (limited to 'ATRI/plugins/plugin_rich/__init__.py')
-rw-r--r--ATRI/plugins/plugin_rich/__init__.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/ATRI/plugins/plugin_rich/__init__.py b/ATRI/plugins/plugin_rich/__init__.py
index 51b86e8..6d2dec8 100644
--- a/ATRI/plugins/plugin_rich/__init__.py
+++ b/ATRI/plugins/plugin_rich/__init__.py
@@ -15,13 +15,13 @@ import json
import requests
from nonebot.log import logger
+from nonebot.typing import Bot, Event
from nonebot.plugin import on_message
-from nonebot.adapters.cqhttp import Bot, Event
-from utils.utils_times import countX
-from utils.utils_rule import check_banlist
-from utils.utils_request import request_get
-from .body import dec
+from ATRI.utils.utils_times import countX
+from ATRI.utils.utils_rule import check_banlist
+from ATRI.utils.utils_request import request_get
+from .data_source import dec
BILI_REPORT_FORMAT = """[{aid}] Info:
Title: {title}
@@ -36,7 +36,7 @@ bilibiliRich = on_message(rule=check_banlist())
b_list = []
[email protected]() # type: ignore
async def _(bot: Bot, event: Event, state: dict) -> None:
global b_list
user = event.user_id
@@ -101,7 +101,7 @@ cloudmusicRich = on_message(rule=check_banlist())
c_list = []
[email protected]() # type: ignore
async def _(bot: Bot, event: Event, state: dict) -> None:
global c_list
user = event.user_id