diff --git a/repo/js/ABGIHoui/README.md b/repo/js/ABGIHoui/README.md new file mode 100644 index 000000000..691702788 --- /dev/null +++ b/repo/js/ABGIHoui/README.md @@ -0,0 +1,28 @@ +# ABGIHoui +## 介绍 +#### 该脚本是搭配auto-bgi软件使用的 +#### 不了解的可以去BetterGI的QQ频道搜索【auto-bgi】 +#### 也可以电脑点击【[ABGI](https://gitee.com/wangjian0327/auto-bgi/blob/ginVue/README.md)】,进行学习,了解,以及加入QQ群215053644 +##### 可启动的功能有 + "一条龙", + "配置组", + "狗粮联机上线", + "狗粮联机下线", + "狗粮联机调试", + "指定脚本更新", + "今日配置组执行情况通知", + "关闭原神和关闭bgi", + "电脑静音", + "开始obs录制", + "结束obs录制", + "米游社签到" (需要自己配置相关文件) + "启动bat脚本"(待内置) + +------ + + ## 注意 + #### 使用`ABGIHoui`脚本时,`ABGI`最低版本为【3.3.10】 + #### 原理解释 + 这是ABGI内置关键词识别,然后进行调用功能 + +------ diff --git a/repo/js/ABGIHoui/main.js b/repo/js/ABGIHoui/main.js new file mode 100644 index 000000000..26fe64d6a --- /dev/null +++ b/repo/js/ABGIHoui/main.js @@ -0,0 +1,43 @@ +(async function () { + switch (settings.selectTask) { + case "一条龙": + log.info(`ABGI启动${settings.selectTask}`+":"+`${settings.inputText}`); + return; + case "启动配置组": + log.info(`ABGI启动${settings.selectTask}`+":"+`${settings.inputText}`); + return; + case "狗粮联机上线": + log.info(`ABGI启动联机上线`+":"); + return; + case "狗粮联机下线": + log.info(`ABGI启动联机下线`+":"); + return; + case "狗粮联机调试": + log.info(`ABGI启动联机调试`+":"); + return; + case "指定脚本更新": + log.info(`ABGI启动脚本更新`+":"+`${settings.inputText}`); + return; + case "今日配置组执行情况通知": + log.info(`ABGI启动${settings.selectTask}`+":"); + return; + case "关闭原神和关闭bgi": + log.info(`ABGI启动${settings.selectTask}`+":"); + return; + case "电脑静音": + log.info(`ABGI启动${settings.selectTask}`+":"); + return; + case "开始obs录制": + log.info(`ABGI启动obs`+":"+`启动`); + return; + case "结束obs录制": + log.info(`ABGI启动obs`+":"+`关闭`); + return; + case "米游社签到": + log.info(`ABGI启动${settings.selectTask}`+":"); + return; + default: + log.error(`ABGI不支持的任务${settings.selectTask}`); + return; + }; +})(); diff --git a/repo/js/ABGIHoui/manifest.json b/repo/js/ABGIHoui/manifest.json new file mode 100644 index 000000000..42153c668 --- /dev/null +++ b/repo/js/ABGIHoui/manifest.json @@ -0,0 +1,23 @@ +{ + "manifest_version": 1, + "name": "老王妙妙屋", + "version": "0.1", + "tags": [ + "abgi" + ], + "description": "启动ABGI各种功能", + "saved_files": [ + ], + "authors": [ + { + "name": "隔壁老王", + "links": "https://github.com/wjdsg0327" + }, + { + "name": "古又", + "links": "https://github.com/guyou45" + } + ], + "settings_ui": "settings.json", + "main": "main.js" +} \ No newline at end of file diff --git a/repo/js/ABGIHoui/settings.json b/repo/js/ABGIHoui/settings.json new file mode 100644 index 000000000..0c4393e58 --- /dev/null +++ b/repo/js/ABGIHoui/settings.json @@ -0,0 +1,28 @@ +[ + { + "name": "selectTask", + "type": "select", + "label": "选择你想要的任务", + "options": [ + "一条龙", + "配置组", + "狗粮联机上线", + "狗粮联机下线", + "狗粮联机调试", + "指定脚本更新", + "今日配置组执行情况通知", + "关闭原神和关闭bgi", + "电脑静音", + "开始obs录制", + "结束obs录制", + "米游社签到" + ], + "default": "" + }, + { + "name": "inputText", + "type": "input-text", + "label": " 任务参数(可选) \n一条龙名字或者配置组名字,多个配置组用空格分隔\n注意:可选指有些需要参数,有些不需要参数", + "default": "" + } +] \ No newline at end of file