From ebcb6cb4d5043759e634dcc1bd1a28573d650813 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sun, 25 Oct 2020 16:33:33 +0800 Subject: [Update] --- ATRI/plugins/plugin_chat/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ATRI/plugins/plugin_chat/__init__.py') diff --git a/ATRI/plugins/plugin_chat/__init__.py b/ATRI/plugins/plugin_chat/__init__.py index fc2a6e2..8f4fd32 100644 --- a/ATRI/plugins/plugin_chat/__init__.py +++ b/ATRI/plugins/plugin_chat/__init__.py @@ -13,6 +13,7 @@ __author__ = 'kyomotoi' from random import choice from nonebot.log import logger +from nonebot.permission import GROUP_ADMIN, GROUP_OWNER, SUPERUSER from nonebot.rule import to_me from nonebot.adapters.cqhttp import Bot, Event from nonebot.plugin import on_command, on_message, on_notice @@ -60,7 +61,6 @@ async def _(bot: Bot, event: Event, state: dict) -> None: pass - # 戳 一 戳 pokehah = on_command("戳一戳", rule=to_me()) @@ -95,6 +95,7 @@ poke = on_notice(poke_, block=True) poke.handle()(_poke) +# 处理进 / 退 裙事件 groupEvent = on_notice() @groupEvent.handle() # type: ignore @@ -109,3 +110,6 @@ async def _(bot: Bot, event: Event, state: dict) -> None: elif event.raw_event["notice_type"] == "group_decrease": await groupEvent.finish(f'[{event.raw_event["operator_id"]}] 离开了我们...') + + +# 舆情监听系统 \ No newline at end of file -- cgit v1.2.3