From ccf043d670a16b682b64795a7495569b111e2d8c Mon Sep 17 00:00:00 2001 From: ThelevenFD <104363913+ThelevenFD@users.noreply.github.com> Date: Wed, 18 Dec 2024 08:49:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=88=B3=E4=B8=80=E6=88=B3?= =?UTF-8?q?=E8=87=AA=E6=A3=80=E9=89=B4=E6=9D=83=20(#1780)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复戳一戳自检鉴权 * :rotating_light: auto fix by pre-commit hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- zhenxun/builtin_plugins/check/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zhenxun/builtin_plugins/check/__init__.py b/zhenxun/builtin_plugins/check/__init__.py index 273a5e3c..047d44f6 100644 --- a/zhenxun/builtin_plugins/check/__init__.py +++ b/zhenxun/builtin_plugins/check/__init__.py @@ -78,7 +78,10 @@ if check_type in {"message", "mix"}: if check_type in {"poke", "mix"}: # poke _self_check_poke_matcher = on_notice( - priority=5, block=False, rule=notice_rule(PokeNotifyEvent) & to_me() + priority=5, + permission=SUPERUSER, + block=False, + rule=notice_rule(PokeNotifyEvent) & to_me(), ) @_self_check_poke_matcher.handle()