修复戳一戳自检鉴权 (#1780)

* 修复戳一戳自检鉴权

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
ThelevenFD
2024-12-18 08:49:16 +08:00
committed by GitHub
co-authored by pre-commit-ci[bot]
parent 91352e4f3a
commit ccf043d670
+4 -1
View File
@@ -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()