注册插件时的名称修改

This commit is contained in:
yoimiya-kokomi 2022-09-17 06:01:31 +08:00
parent 97de796ea7
commit 14fa6739b9
4 changed files with 4 additions and 7 deletions

View File

@ -20,8 +20,7 @@ import { enemyLv, getOriginalPicture } from './character/utils.js'
let app = App.init({
id: 'character',
name: '角色查询',
desc: '角色查询'
name: '角色查询'
})
app.reg('character', character, {
rule: /^(#(.*)|#*(更新|录入)?(.*)(详细|详情|面板|面版|伤害[1-7]?)(更新)?)$/,

View File

@ -10,8 +10,7 @@ import HutaoApi from './stat/HutaoApi.js'
let app = App.init({
id: 'stat',
name: '喵喵帮助',
desc: '喵喵帮助'
name: '深渊统计'
})
app.reg('cons-stat', consStat, {

View File

@ -14,8 +14,7 @@ let action = {
let app = App.init({
id: 'wiki',
name: '喵喵帮助',
desc: '喵喵帮助'
name: '角色资料'
})
app.reg('wiki', wiki, {
rule: /^(#|喵喵)?.*(天赋|技能|命座|命之座|资料|图鉴|照片|写真|图片|图像)$/,

View File

@ -24,7 +24,7 @@ class App {
constructor () {
super({
name: `喵喵:${cfg.name || cfg.id}`,
desc: cfg.desc || '喵喵插件',
desc: cfg.desc || cfg.name || '喵喵插件',
event: 'message',
priority: 50,
rule: rules