mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
feat: 设置指令优先级
This commit is contained in:
parent
dc5a07782d
commit
c785fb2d55
15 changed files with 241 additions and 95 deletions
|
|
@ -3,7 +3,7 @@ import render from '../lib/render.js';
|
|||
import { rulePrefix } from '../lib/common.js';
|
||||
import { getPanelList, refreshPanel, getPanel } from '../lib/avatar.js';
|
||||
import settings from '../lib/settings.js';
|
||||
import _ from 'lodash'
|
||||
import _ from 'lodash';
|
||||
|
||||
export class Panel extends ZZZPlugin {
|
||||
constructor() {
|
||||
|
|
@ -11,7 +11,7 @@ export class Panel extends ZZZPlugin {
|
|||
name: '[ZZZ-Plugin]Panel',
|
||||
dsc: 'zzzpanel',
|
||||
event: 'message',
|
||||
priority: 100,
|
||||
priority: _.get(settings.getConfig('priority'), 'panel', 1),
|
||||
rule: [
|
||||
{
|
||||
reg: `${rulePrefix}((刷新|更新)面板|面板(刷新|更新))$`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue