mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +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
|
||||
*新增`体力推送方法`
|
||||
*可通过修改init.js方法调用实现新版体力推送
|
||||
|
@ -352,6 +352,9 @@ export async function DailyNoteTask() {
|
||||
}
|
||||
|
||||
export async function pokeNote(e){
|
||||
if (!Cfg.get("note.poke")) {
|
||||
return false;
|
||||
}
|
||||
return await Note(e, getPluginRender("xiaoyao-cvs-plugin"));
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,7 @@ let cfgMap = {
|
||||
"体力": "sys.Note",
|
||||
"帮助": "sys.help",
|
||||
"匹配": "sys.Atlas",
|
||||
"戳一戳":"note.poke",
|
||||
"模板": "mb.len",
|
||||
"目录":"Atlas.all",
|
||||
};
|
||||
@ -88,6 +89,7 @@ export async function sysCfg(e, {
|
||||
Note: getStatus("sys.Note",false),
|
||||
Atlas: getStatus("sys.Atlas",false),
|
||||
len:Cfg.get("mb.len", 0),
|
||||
poke: getStatus("note.poke"),
|
||||
imgPlus: fs.existsSync(plusPath),
|
||||
bg: await rodom(), //获取底图
|
||||
Atlasall:getStatus("Atlas.all",false),
|
||||
|
3
index.js
3
index.js
@ -11,7 +11,7 @@ import common from "../../lib/common.js";
|
||||
import {
|
||||
Note,DailyNoteTask,
|
||||
Note_appoint,pokeNote
|
||||
} from "./apps/Note.js"
|
||||
} from "./apps/Note.js";
|
||||
import {
|
||||
rule as adminRule,
|
||||
updateRes,
|
||||
@ -57,6 +57,7 @@ let rule = {
|
||||
reg: "#poke#",
|
||||
describe: "体力",
|
||||
},
|
||||
|
||||
...adminRule
|
||||
};
|
||||
|
||||
|
@ -38,7 +38,13 @@
|
||||
</div>
|
||||
<div class="cfg-desc">图鉴目录 为兼容之前用js版本插件用户可以用指令关闭功能</div>
|
||||
</li>
|
||||
|
||||
<li class="cfg-li">
|
||||
<div class="cfg-line">
|
||||
戳一戳卡片
|
||||
<span class="cfg-hint"> #图鉴设置戳一戳 + 开启/关闭</span>
|
||||
{{@poke}}
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- <li class="cfg-li">
|
||||
<div class="cfg-line">
|
||||
|
Loading…
Reference in New Issue
Block a user