mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
feat: 设置指令优先级
This commit is contained in:
parent
dc5a07782d
commit
c785fb2d55
15 changed files with 241 additions and 95 deletions
|
|
@ -4,6 +4,7 @@ import { exec } from 'child_process';
|
|||
import { ZZZPlugin } from '../lib/plugin.js';
|
||||
import { rulePrefix } from '../lib/common.js';
|
||||
import { pluginPath, pluginName } from '../lib/path.js';
|
||||
import settings from '../lib/settings.js';
|
||||
|
||||
let Restart = null;
|
||||
|
||||
|
|
@ -26,7 +27,7 @@ export class Update extends ZZZPlugin {
|
|||
name: '[ZZZ-Plugin]Update',
|
||||
dsc: 'zzzupdate',
|
||||
event: 'message',
|
||||
priority: 1000,
|
||||
priority: _.get(settings.getConfig('priority'), 'update', 1),
|
||||
rule: [
|
||||
{
|
||||
reg: `^${rulePrefix}(插件)?(强制)?更新$`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue