增加了group_manage_matcher的重载

This commit is contained in:
Azide
2022-03-14 20:04:14 +08:00
parent 17c3d0c667
commit 410c9619d5
2 changed files with 28 additions and 3 deletions
+4 -1
View File
@@ -12,7 +12,7 @@ from nonebot.internal.params import ArgStr
from nonebot.internal.rule import Rule
from nonebot.log import logger
from nonebot.matcher import Matcher
from nonebot.params import Depends, EventMessage, EventPlainText, EventToMe
from nonebot.params import Depends, EventMessage, EventPlainText, EventToMe, EventType
from nonebot.permission import SUPERUSER
from nonebot.rule import to_me
from nonebot.typing import T_State
@@ -296,6 +296,9 @@ do_del_sub(del_sub_matcher)
group_manage_matcher = on_command("群管理")
@group_manage_matcher.handle()
async def send_group_list(bot: Bot, event: GroupMessageEvent, state: T_State):
await group_manage_matcher.finish(Message("该功能只支持私聊使用,请私聊Bot"))
@group_manage_matcher.handle()
async def send_group_list(bot: Bot, state: T_State):