2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-22 19:10:53 +08:00

增加指令#多体力 补充部分别名数据

This commit is contained in:
Ctrlcvs 2022-11-09 00:10:43 +08:00
parent 02b6f3943d
commit 4e6a87df16
4 changed files with 38 additions and 5 deletions

View File

@ -37,6 +37,23 @@ export async function Note(e, {
let notes = new note(e); let notes = new note(e);
let cookie, uid, res; let cookie, uid, res;
if (isV3) { if (isV3) {
if(e.msg.replace(/全|全部/g,'多').includes('多')){
let ck=await gsCfg.getBingCkSingle(e.user_id)
let sendMsg=[]
e._reply=e.reply;
e.reply=((msg)=>{
sendMsg.push(msg)
})
if(Object.keys(ck).length>1){
e._reply(`多账号体力查询中请稍等...`)
}
for(let item of Object.keys(ck)){
let res=await (await e.runtime.createMysApi(ck[item].uid,ck[item].ck)).getData('dailyNote')
await notes.getNote(ck[item].ck,ck[item].uid,res,{render})
}
e._reply(sendMsg)
return true;
}
let MysInfo = await import(`file://${_path}/plugins/genshin/model/mys/mysInfo.js`); let MysInfo = await import(`file://${_path}/plugins/genshin/model/mys/mysInfo.js`);
res = await MysInfo.default.get(e, 'dailyNote') res = await MysInfo.default.get(e, 'dailyNote')
if (!res || res.retcode !== 0) return true if (!res || res.retcode !== 0) return true

View File

@ -91,7 +91,7 @@ let rule = {
describe: "角色、食物、怪物、武器信息图鉴", describe: "角色、食物、怪物、武器信息图鉴",
}, },
Note: { Note: {
reg: "^#*(体力|树脂|查询体力|便笺|便签)$", reg: "^#*(多|全|全部)*(体力|树脂|查询体力|便笺|便签)$",
describe: "体力", describe: "体力",
}, },
noteTask: { noteTask: {
@ -99,7 +99,7 @@ let rule = {
describe: "体力推送", describe: "体力推送",
}, },
Note_appoint: { Note_appoint: {
reg: "^#体力模板(设置(.*)|列表(.*))|(#我的体力模板列表|#体力模板移除(.*))$", reg: "^#(体力模板(设置(.*)|列表(.*))|(我的体力模板列表|体力模板移除(.*)))$",
describe: "体力模板设置", describe: "体力模板设置",
}, },
genShenMap: { genShenMap: {

View File

@ -193,8 +193,8 @@
- "#行秋图鉴" - "#行秋图鉴"
- "#芭芭拉图鉴" - "#芭芭拉图鉴"
- "#夜兰图鉴" - "#夜兰图鉴"
- 妮露图鉴 - "妮露图鉴"
- 坎蒂丝图鉴 - "坎蒂丝图鉴"
冰系角色图鉴|冰系人物图鉴|冰系英雄图鉴: 冰系角色图鉴|冰系人物图鉴|冰系英雄图鉴:
- "#申鹤图鉴" - "#申鹤图鉴"
- "#优菈图鉴" - "#优菈图鉴"
@ -219,7 +219,7 @@
- "#北斗图鉴" - "#北斗图鉴"
- "#久岐忍图鉴" - "#久岐忍图鉴"
- "#多莉图鉴" - "#多莉图鉴"
- 赛诺图鉴 - "#赛诺图鉴"
岩系角色图鉴|岩系人物图鉴|岩系英雄图鉴: 岩系角色图鉴|岩系人物图鉴|岩系英雄图鉴:
- "#岩主图鉴" - "#岩主图鉴"
- "#云堇图鉴" - "#云堇图鉴"
@ -301,6 +301,7 @@
- "#烟绯图鉴" - "#烟绯图鉴"
- "#鹿野院平藏图鉴" - "#鹿野院平藏图鉴"
- "#纳西妲图鉴" - "#纳西妲图鉴"
- "#流浪者图鉴"
武器图鉴: 武器图鉴:
- 武器星级 - 武器星级
- "#五星武器图鉴" - "#五星武器图鉴"
@ -337,6 +338,7 @@
- "#纪行武器图鉴" - "#纪行武器图鉴"
- "#活动武器图鉴" - "#活动武器图鉴"
五星武器图鉴|5星武器图鉴: 五星武器图鉴|5星武器图鉴:
- "#图莱杜拉的回忆图鉴"
- "#千夜浮梦图鉴" - "#千夜浮梦图鉴"
- "#圣显之钥图鉴" - "#圣显之钥图鉴"
- "#赤沙之杖图鉴" - "#赤沙之杖图鉴"
@ -452,6 +454,7 @@
- "#森林王器图鉴" - "#森林王器图鉴"
- "#竭泽图鉴" - "#竭泽图鉴"
- "#贯月矢图鉴" - "#贯月矢图鉴"
- "#东花坊时雨图鉴"
三星武器图鉴|3星武器图鉴: 三星武器图鉴|3星武器图鉴:
- "#飞天御剑图鉴" - "#飞天御剑图鉴"
- "#铁影阔剑图鉴" - "#铁影阔剑图鉴"
@ -522,6 +525,7 @@
- "#银剑图鉴" - "#银剑图鉴"
- "#无锋剑图鉴" - "#无锋剑图鉴"
- "#原木刀图鉴" - "#原木刀图鉴"
- "#东花坊时雨图鉴"
双手剑武器图鉴|双手武器图鉴: 双手剑武器图鉴|双手武器图鉴:
- "#玛海菈的水色图鉴" - "#玛海菈的水色图鉴"
- "#赤角石溃杵图鉴" - "#赤角石溃杵图鉴"
@ -612,6 +616,7 @@
- "#新手长枪图鉴" - "#新手长枪图鉴"
- "#贯月矢图鉴" - "#贯月矢图鉴"
法器武器图鉴|法器图鉴: 法器武器图鉴|法器图鉴:
- "#图莱杜拉的回忆图鉴"
- "#千夜浮梦图鉴" - "#千夜浮梦图鉴"
- "#流浪的晚星图鉴" - "#流浪的晚星图鉴"
- "#证誓之明瞳图鉴" - "#证誓之明瞳图鉴"
@ -761,6 +766,7 @@
- "#甲级宝珏图鉴" - "#甲级宝珏图鉴"
- "#猎弓图鉴" - "#猎弓图鉴"
暴击伤害武器图鉴|爆伤武器图鉴: 暴击伤害武器图鉴|爆伤武器图鉴:
- "#图莱杜拉的回忆图鉴"
- "#若水图鉴" - "#若水图鉴"
- "#神乐之真意图鉴" - "#神乐之真意图鉴"
- "#赤角石溃杵图鉴" - "#赤角石溃杵图鉴"
@ -1045,6 +1051,7 @@
- "#风花之颂图鉴" - "#风花之颂图鉴"
- "#嘟嘟可故事集图鉴" - "#嘟嘟可故事集图鉴"
- "#笼钓瓶一心图鉴" - "#笼钓瓶一心图鉴"
- "#东花坊时雨图鉴"
原魔图鉴|圆魔图鉴|怪物图鉴: 原魔图鉴|圆魔图鉴|怪物图鉴:
- "#史莱姆图鉴" - "#史莱姆图鉴"
- "#无相图鉴" - "#无相图鉴"

View File

@ -151,6 +151,12 @@
- 纳西妲 - 纳西妲
- 草神 - 草神
- 神灯 - 神灯
图莱杜拉的回忆:
- 图莱杜拉的回忆
- 图莱杜拉
- 流浪者
- 散兵
- 铃铛
昭心: 昭心:
- 糟心 - 糟心
幽夜华尔兹: 幽夜华尔兹:
@ -427,3 +433,6 @@
风信之锋: 风信之锋:
- 风信之锋 - 风信之锋
- 四星鸟枪 - 四星鸟枪
东花坊时雨:
- 雨伞
- 四星伞