修复戳一戳自检鉴权

This commit is contained in:
ThelevenFD 2024-12-17 23:17:36 +08:00 committed by GitHub
parent 91352e4f3a
commit 9620436130
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,7 +78,7 @@ 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()