修复戳一戳自检鉴权 (#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
parent 91352e4f3a
commit ccf043d670
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()