mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-28 18:19:15 +00:00
#喵喵设置
增加#面板练度统计
取代设置,增加卡维自定义角色卡片 (#427)
This commit is contained in:
parent
a019f8de8c
commit
fef2f6c969
@ -60,7 +60,7 @@ app.reg('profile-list', profileList, {
|
|||||||
})
|
})
|
||||||
|
|
||||||
app.reg('profile-stat', profileStat, {
|
app.reg('profile-stat', profileStat, {
|
||||||
rule: /^#面板练度统计$/,
|
rule: /^#(面板|喵喵)?练度统计$/,
|
||||||
name: '面板练度统计$'
|
name: '面板练度统计$'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
import lodash from 'lodash'
|
import lodash from 'lodash'
|
||||||
import { Common, Data } from '../../components/index.js'
|
import {Cfg, Common, Data } from '../../components/index.js'
|
||||||
import { AvatarList, ProfileRank } from '../../models/index.js'
|
import { AvatarList, ProfileRank } from '../../models/index.js'
|
||||||
|
|
||||||
export async function profileStat (e) {
|
export async function profileStat (e) {
|
||||||
|
let isMatch = /^#(喵喵|面板)练度统计?$/.test(e.original_msg || e.msg || '')
|
||||||
|
if (!Cfg.get('profileStat', false) && !isMatch) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
// 缓存时间,单位小时
|
// 缓存时间,单位小时
|
||||||
|
|
||||||
let msg = e.msg.replace('#', '').trim()
|
let msg = e.msg.replace('#', '').trim()
|
||||||
|
@ -8,9 +8,12 @@ export const avatarProfile = true
|
|||||||
// 群面板排名
|
// 群面板排名
|
||||||
export const groupRank = false
|
export const groupRank = false
|
||||||
|
|
||||||
// 使用【#上传深渊】功能取代【#深渊功能】,默认关闭
|
// 使用【#上传深渊】功能取代【#深渊】功能,默认关闭
|
||||||
export const uploadAbyssData = false
|
export const uploadAbyssData = false
|
||||||
|
|
||||||
|
// 使用【#面板练度统计】功能取代【#练度统计】功能,默认关闭
|
||||||
|
export const profileStat = false
|
||||||
|
|
||||||
// 老婆查询
|
// 老婆查询
|
||||||
export const avatarWife = true
|
export const avatarWife = true
|
||||||
|
|
||||||
|
@ -40,7 +40,14 @@ export const cfgSchema = {
|
|||||||
key: '深渊',
|
key: '深渊',
|
||||||
def: false,
|
def: false,
|
||||||
oldCfgKey: 'wiki.abyss',
|
oldCfgKey: 'wiki.abyss',
|
||||||
desc: '使用【#上传深渊】功能取代【#深渊功能】,默认关闭'
|
desc: '使用【#上传深渊】功能取代【#深渊】功能,默认关闭'
|
||||||
|
},
|
||||||
|
profileStat: {
|
||||||
|
title: '面板练度统计',
|
||||||
|
key: '练度统计',
|
||||||
|
def: false,
|
||||||
|
oldCfgKey: 'profile.stat',
|
||||||
|
desc: '使用【#面板练度统计】功能取代【#练度统计】功能,默认关闭'
|
||||||
},
|
},
|
||||||
avatarWife: {
|
avatarWife: {
|
||||||
title: '老婆查询',
|
title: '老婆查询',
|
||||||
|
@ -92,7 +92,8 @@ export const characters = {
|
|||||||
gongji: ['普契涅拉', '公鸡', '鸽子'],
|
gongji: ['普契涅拉', '公鸡', '鸽子'],
|
||||||
duizhang: ['卡皮塔诺', '队长'],
|
duizhang: ['卡皮塔诺', '队长'],
|
||||||
daiyin: ['戴因斯雷布', '戴因', '男派蒙', '大派蒙', '末光之剑', '拾枝者'],
|
daiyin: ['戴因斯雷布', '戴因', '男派蒙', '大派蒙', '末光之剑', '拾枝者'],
|
||||||
tianli: ['天理', '天理维系者', '维系者']
|
tianli: ['天理', '天理维系者', '维系者'],
|
||||||
|
kawei: ['卡维', '艾尔海森室友']
|
||||||
}
|
}
|
||||||
|
|
||||||
export const wifeData = {
|
export const wifeData = {
|
||||||
@ -100,7 +101,7 @@ export const wifeData = {
|
|||||||
烟绯, 优菈, 神里绫华, 宵宫, 雷电将军, 珊瑚宫心海, 九条裟罗, 八重神子, 埃洛伊, 申鹤, 云堇, 夜兰, 久岐忍, 柯莱, 多莉, 伐难,
|
烟绯, 优菈, 神里绫华, 宵宫, 雷电将军, 珊瑚宫心海, 九条裟罗, 八重神子, 埃洛伊, 申鹤, 云堇, 夜兰, 久岐忍, 柯莱, 多莉, 伐难,
|
||||||
女士, 萍姥姥, 柯莱, 多莉, 仆人, 少女, 妮露, 坎蒂丝, 天理,迪希雅,莱依拉,珐露珊`,
|
女士, 萍姥姥, 柯莱, 多莉, 仆人, 少女, 妮露, 坎蒂丝, 天理,迪希雅,莱依拉,珐露珊`,
|
||||||
boyfriend: `空, 凯亚, 迪卢克, 雷泽, 温迪, 行秋, 魈, 钟离, 班尼特, 达达利亚, 重云, 阿贝多, 枫原万叶, 托马, 五郎, 荒泷一斗,
|
boyfriend: `空, 凯亚, 迪卢克, 雷泽, 温迪, 行秋, 魈, 钟离, 班尼特, 达达利亚, 重云, 阿贝多, 枫原万叶, 托马, 五郎, 荒泷一斗,
|
||||||
鹿野院平藏, 神里绫人, 提纳里, 流浪者, 白术, 提纳里, 富人, 博士, 丑角, 公鸡, 队长, 赛诺, 戴因`,
|
鹿野院平藏, 神里绫人, 提纳里, 流浪者, 白术, 提纳里, 富人, 博士, 丑角, 公鸡, 队长, 赛诺, 戴因, 卡维`,
|
||||||
daughter: '可莉, 七七, 迪奥娜, 早柚, 派蒙, 瑶瑶, 纳西妲',
|
daughter: '可莉, 七七, 迪奥娜, 早柚, 派蒙, 瑶瑶, 纳西妲',
|
||||||
son: ''
|
son: ''
|
||||||
}
|
}
|
||||||
|
BIN
resources/character-img/卡维/01.jpg
Normal file
BIN
resources/character-img/卡维/01.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 516 KiB |
BIN
resources/character-img/卡维/02.jpg
Normal file
BIN
resources/character-img/卡维/02.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 MiB |
BIN
resources/character-img/卡维/03.jpg
Normal file
BIN
resources/character-img/卡维/03.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 544 KiB |
Loading…
Reference in New Issue
Block a user