mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
支持戳一戳显示体力开关
This commit is contained in:
parent
da0009d0d6
commit
88ba473ba7
@ -1,3 +1,8 @@
|
|||||||
|
#1.0.8
|
||||||
|
* 支持戳一戳返回体力
|
||||||
|
* 需要使用喵喵分支Yunzai以支持此能力,如需切换可在Yunzai跟目录输入下方命令后更新重启
|
||||||
|
* `git remote set-url origin https://gitee.com/yoimiya-kokomi/Yunzai-Bot`
|
||||||
|
* 可通过`#图鉴设置` 关闭戳一戳
|
||||||
#1.0.7
|
#1.0.7
|
||||||
*新增`体力推送方法`
|
*新增`体力推送方法`
|
||||||
*可通过修改init.js方法调用实现新版体力推送
|
*可通过修改init.js方法调用实现新版体力推送
|
||||||
|
@ -352,6 +352,9 @@ export async function DailyNoteTask() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function pokeNote(e){
|
export async function pokeNote(e){
|
||||||
|
if (!Cfg.get("note.poke")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return await Note(e, getPluginRender("xiaoyao-cvs-plugin"));
|
return await Note(e, getPluginRender("xiaoyao-cvs-plugin"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ let cfgMap = {
|
|||||||
"体力": "sys.Note",
|
"体力": "sys.Note",
|
||||||
"帮助": "sys.help",
|
"帮助": "sys.help",
|
||||||
"匹配": "sys.Atlas",
|
"匹配": "sys.Atlas",
|
||||||
|
"戳一戳":"note.poke",
|
||||||
"模板": "mb.len",
|
"模板": "mb.len",
|
||||||
"目录":"Atlas.all",
|
"目录":"Atlas.all",
|
||||||
};
|
};
|
||||||
@ -88,6 +89,7 @@ export async function sysCfg(e, {
|
|||||||
Note: getStatus("sys.Note",false),
|
Note: getStatus("sys.Note",false),
|
||||||
Atlas: getStatus("sys.Atlas",false),
|
Atlas: getStatus("sys.Atlas",false),
|
||||||
len:Cfg.get("mb.len", 0),
|
len:Cfg.get("mb.len", 0),
|
||||||
|
poke: getStatus("note.poke"),
|
||||||
imgPlus: fs.existsSync(plusPath),
|
imgPlus: fs.existsSync(plusPath),
|
||||||
bg: await rodom(), //获取底图
|
bg: await rodom(), //获取底图
|
||||||
Atlasall:getStatus("Atlas.all",false),
|
Atlasall:getStatus("Atlas.all",false),
|
||||||
|
3
index.js
3
index.js
@ -11,7 +11,7 @@ import common from "../../lib/common.js";
|
|||||||
import {
|
import {
|
||||||
Note,DailyNoteTask,
|
Note,DailyNoteTask,
|
||||||
Note_appoint,pokeNote
|
Note_appoint,pokeNote
|
||||||
} from "./apps/Note.js"
|
} from "./apps/Note.js";
|
||||||
import {
|
import {
|
||||||
rule as adminRule,
|
rule as adminRule,
|
||||||
updateRes,
|
updateRes,
|
||||||
@ -57,6 +57,7 @@ let rule = {
|
|||||||
reg: "#poke#",
|
reg: "#poke#",
|
||||||
describe: "体力",
|
describe: "体力",
|
||||||
},
|
},
|
||||||
|
|
||||||
...adminRule
|
...adminRule
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -38,7 +38,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="cfg-desc">图鉴目录 为兼容之前用js版本插件用户可以用指令关闭功能</div>
|
<div class="cfg-desc">图鉴目录 为兼容之前用js版本插件用户可以用指令关闭功能</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="cfg-li">
|
||||||
|
<div class="cfg-line">
|
||||||
|
戳一戳卡片
|
||||||
|
<span class="cfg-hint"> #图鉴设置戳一戳 + 开启/关闭</span>
|
||||||
|
{{@poke}}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
<!-- <li class="cfg-li">
|
<!-- <li class="cfg-li">
|
||||||
<div class="cfg-line">
|
<div class="cfg-line">
|
||||||
|
Loading…
Reference in New Issue
Block a user