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({
|
let app = App.init({
|
||||||
id: 'character',
|
id: 'character',
|
||||||
name: '角色查询',
|
name: '角色查询'
|
||||||
desc: '角色查询'
|
|
||||||
})
|
})
|
||||||
app.reg('character', character, {
|
app.reg('character', character, {
|
||||||
rule: /^(#(.*)|#*(更新|录入)?(.*)(详细|详情|面板|面版|伤害[1-7]?)(更新)?)$/,
|
rule: /^(#(.*)|#*(更新|录入)?(.*)(详细|详情|面板|面版|伤害[1-7]?)(更新)?)$/,
|
||||||
|
@ -10,8 +10,7 @@ import HutaoApi from './stat/HutaoApi.js'
|
|||||||
|
|
||||||
let app = App.init({
|
let app = App.init({
|
||||||
id: 'stat',
|
id: 'stat',
|
||||||
name: '喵喵帮助',
|
name: '深渊统计'
|
||||||
desc: '喵喵帮助'
|
|
||||||
})
|
})
|
||||||
|
|
||||||
app.reg('cons-stat', consStat, {
|
app.reg('cons-stat', consStat, {
|
||||||
|
@ -14,8 +14,7 @@ let action = {
|
|||||||
|
|
||||||
let app = App.init({
|
let app = App.init({
|
||||||
id: 'wiki',
|
id: 'wiki',
|
||||||
name: '喵喵帮助',
|
name: '角色资料'
|
||||||
desc: '喵喵帮助'
|
|
||||||
})
|
})
|
||||||
app.reg('wiki', wiki, {
|
app.reg('wiki', wiki, {
|
||||||
rule: /^(#|喵喵)?.*(天赋|技能|命座|命之座|资料|图鉴|照片|写真|图片|图像)$/,
|
rule: /^(#|喵喵)?.*(天赋|技能|命座|命之座|资料|图鉴|照片|写真|图片|图像)$/,
|
||||||
|
@ -24,7 +24,7 @@ class App {
|
|||||||
constructor () {
|
constructor () {
|
||||||
super({
|
super({
|
||||||
name: `喵喵:${cfg.name || cfg.id}`,
|
name: `喵喵:${cfg.name || cfg.id}`,
|
||||||
desc: cfg.desc || '喵喵插件',
|
desc: cfg.desc || cfg.name || '喵喵插件',
|
||||||
event: 'message',
|
event: 'message',
|
||||||
priority: 50,
|
priority: 50,
|
||||||
rule: rules
|
rule: rules
|
||||||
|
Loading…
Reference in New Issue
Block a user