diff options
author | Kyomotoi <[email protected]> | 2020-10-25 16:33:33 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-10-25 16:33:33 +0800 |
commit | ebcb6cb4d5043759e634dcc1bd1a28573d650813 (patch) | |
tree | 565552f1e0789860d94558805c75d77c490772e1 /ATRI/plugins/plugin_chat/__init__.py | |
parent | a3838cec8eba90936a864f01ee44d3f93410af6e (diff) | |
download | ATRI-ebcb6cb4d5043759e634dcc1bd1a28573d650813.tar.gz ATRI-ebcb6cb4d5043759e634dcc1bd1a28573d650813.tar.bz2 ATRI-ebcb6cb4d5043759e634dcc1bd1a28573d650813.zip |
[Update]
Diffstat (limited to 'ATRI/plugins/plugin_chat/__init__.py')
-rw-r--r-- | ATRI/plugins/plugin_chat/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |