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
|
|
@ -2,6 +2,8 @@ import { ZZZPlugin } from '../lib/plugin.js';
|
|||
import render from '../lib/render.js';
|
||||
import { rulePrefix } from '../lib/common.js';
|
||||
import { ZZZIndexResp } from '../model/index.js';
|
||||
import settings from '../lib/settings.js';
|
||||
import _ from 'lodash';
|
||||
|
||||
export class Card extends ZZZPlugin {
|
||||
constructor() {
|
||||
|
|
@ -9,7 +11,7 @@ export class Card extends ZZZPlugin {
|
|||
name: '[ZZZ-Plugin]Card',
|
||||
dsc: 'zzzcard',
|
||||
event: 'message',
|
||||
priority: 100,
|
||||
priority: _.get(settings.getConfig('priority'), 'card', 1),
|
||||
rule: [
|
||||
{
|
||||
reg: `${rulePrefix}(card|卡片|个人信息)$`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue