mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
注册插件时的名称修改
This commit is contained in:
parent
97de796ea7
commit
14fa6739b9
@ -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]?)(更新)?)$/,
|
||||
|
@ -10,8 +10,7 @@ import HutaoApi from './stat/HutaoApi.js'
|
||||
|
||||
let app = App.init({
|
||||
id: 'stat',
|
||||
name: '喵喵帮助',
|
||||
desc: '喵喵帮助'
|
||||
name: '深渊统计'
|
||||
})
|
||||
|
||||
app.reg('cons-stat', consStat, {
|
||||
|
@ -14,8 +14,7 @@ let action = {
|
||||
|
||||
let app = App.init({
|
||||
id: 'wiki',
|
||||
name: '喵喵帮助',
|
||||
desc: '喵喵帮助'
|
||||
name: '角色资料'
|
||||
})
|
||||
app.reg('wiki', wiki, {
|
||||
rule: /^(#|喵喵)?.*(天赋|技能|命座|命之座|资料|图鉴|照片|写真|图片|图像)$/,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user