fix: improve simadmin autman trigger compatibility
This commit is contained in:
@@ -26,16 +26,20 @@ plugin/scripts/simadmin_multi.py
|
||||
插件头注已设置:
|
||||
|
||||
```text
|
||||
# [admin: true]
|
||||
# [rule: ^sim帮助$]
|
||||
# [rule: ^sim配置$]
|
||||
# [rule: ^sim管理$]
|
||||
# [rule: ^sim状态(?:\s+\S+)?$]
|
||||
# [rule: ^sim短信\s+\S+\s+\S+\s+[\s\S]+$]
|
||||
#[admin: true]
|
||||
#[rule: ^sim帮助$]
|
||||
#[rule: ^sim配置$]
|
||||
#[rule: ^sim管理$]
|
||||
#[rule: ^sim状态(?:\s+\S+)?$]
|
||||
#[rule: ^sim短信\s+\S+\s+\S+\s+[\s\S]+$]
|
||||
#[priority: 900]
|
||||
#[platform: qq,qb,wx,wb,tg,tb,fs,we,web,wxmp]
|
||||
```
|
||||
|
||||
即:仅管理员可用。代码内也会再次判断 `sender.isAdmin()`。
|
||||
|
||||
> 实机排查修复:头注采用 Autman 官方常见的 `#[key: value]` 无空格格式,并扩展平台到 `qq,qb,wx,wb,tg,tb,fs,we,web,wxmp`。如果部署到外置微信/内置微信/频道等不同适配器,旧版只写 `qq,wx,tg,tb,fs` 可能导致规则未注册或平台不匹配,从而没有任何交互回应。
|
||||
|
||||
## 配置存储
|
||||
|
||||
插件配置存入 Autman 数据桶:
|
||||
|
||||
Reference in New Issue
Block a user