summaryrefslogtreecommitdiff
path: root/ATRI/plugins/rich/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/plugins/rich/__init__.py')
-rw-r--r--ATRI/plugins/rich/__init__.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/ATRI/plugins/rich/__init__.py b/ATRI/plugins/rich/__init__.py
deleted file mode 100644
index 2d8f8c6..0000000
--- a/ATRI/plugins/rich/__init__.py
+++ /dev/null
@@ -1,21 +0,0 @@
-from nonebot.adapters.onebot.v11 import MessageEvent
-from nonebot.adapters.onebot.v11.helpers import Cooldown
-
-from ATRI.log import logger as log
-from .data_source import Rich
-
-
-bili_rich = Rich().on_message("小程序检测", "小程序爪巴", block=False)
-
-
-@bili_rich.handle([Cooldown(3)])
-async def _fk_bili(event: MessageEvent):
- msg = str(event.message)
- try:
- result, is_ok = await Rich().fk_bili(msg)
- except Exception:
- return
- log.debug(result, is_ok)
- if not is_ok:
- return
- await bili_rich.finish(result)