2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 03:20:52 +08:00

更新版本号

This commit is contained in:
Ctrlcvs 2022-08-03 22:56:01 +08:00 committed by leiyilu
parent 2d5ea97974
commit b2518cc358
4 changed files with 36 additions and 15 deletions

View File

@ -1,13 +1,15 @@
# 1.1.4 # 1.1.5
* 体力模板列表更改为转发形式更具体呈现效果
* 新增自动签到配置
*可在`xiaoyao-cvs-plugin/config/config.yaml`中修改是否启用自动签到
# 1.1.3~1.1.4
* 新增指令`#米游币全部签到` * 新增指令`#米游币全部签到`
*为所有存在的stoken进行社区米游币签到 *为所有存在的stoken进行社区米游币签到
* 新增指令`#米社全部签到` * 新增指令`#米社全部签到`
*为所有用户进行其余的社区模块签到 *为所有用户进行其余的社区模块签到
* 新增自动签到默认**00:02**开始执行签到 * 新增自动签到默认**00:02**开始执行签到
*具体时间修改在`./config/config.yaml` *具体时间修改在`./config/config.yaml`
# 1.1.3 * 米游社米游币获取功能需要绑定`cookies`来跑非信任的bot请勿发送cookies
* 下列功能需要绑定`cookies`来跑非信任的bot请勿发送cookies
* 修正版本说明避免误导
* 实现米游社多模块签到 * 实现米游社多模块签到
* 实现米游社米游币获取 * 实现米游社米游币获取
* 新增指令`cookies帮助` * 新增指令`cookies帮助`

View File

@ -233,7 +233,7 @@ export async function Note(e, {
mb = lodash.random(0, path_url.length - 1); mb = lodash.random(0, path_url.length - 1);
} }
let urlType = note_file(); let urlType = note_file("xiaoyao");
if (urlType.length > 0) { if (urlType.length > 0) {
urlType = urlType[lodash.random(0, urlType.length - 1)] urlType = urlType[lodash.random(0, urlType.length - 1)]
} }
@ -437,18 +437,20 @@ export async function Note_appoint(e) {
return true; return true;
} }
const note_file = function() { const note_file = function(xiaoyao) {
var urlFile = fs.readdirSync(`./plugins/xiaoyao-cvs-plugin/resources/dailyNote/Template/`); var urlFile = fs.readdirSync(`./plugins/xiaoyao-cvs-plugin/resources/dailyNote/Template/`);
var urlType = []; var urlType = [];
for (let val of urlFile) { for (let val of urlFile) {
if (val.includes(".")) continue; if (val.includes(".")) continue;
urlType.push(val) urlType.push(val)
} }
var urlFileOne = fs.readdirSync(`./plugins/xiaoyao-cvs-plugin/resources/dailyNote/background_image/`); if(!xiaoyao){
for (let val of urlFileOne) { var urlFileOne = fs.readdirSync(`./plugins/xiaoyao-cvs-plugin/resources/dailyNote/background_image/`);
if (!val.includes(".")) continue; for (let val of urlFileOne) {
urlType.push(val) if (!val.includes(".")) continue;
urlType.push(val)
}
} }
return urlType; return urlType;
} }

View File

@ -26,12 +26,14 @@ import {
rule as signRule, rule as signRule,
sign, sign,
mysSign, mysSign,
cookiesDocHelp,signlist, cookiesDocHelp,
signlist,
allMysSign, allMysSign,
allSign allSign
} from "./sign.js" } from "./sign.js"
export { export {
updateRes,signlist, updateRes,
signlist,
updateMiaoPlugin, updateMiaoPlugin,
sign, sign,
versionInfo, versionInfo,
@ -89,8 +91,17 @@ task();
async function task() { async function task() {
if (typeof test != "undefined") return; if (typeof test != "undefined") return;
let set = gsCfg.getfileYaml(`${_path}/plugins/xiaoyao-cvs-plugin/config/`, "config") let set = gsCfg.getfileYaml(`${_path}/plugins/xiaoyao-cvs-plugin/config/`, "config")
schedule.scheduleJob(set.mysBbsTime, () => allMysSign()); schedule.scheduleJob(set.mysBbsTime, function() {
schedule.scheduleJob(set.allSignTime, () => allSign()); if (set.ismysSign) {
allMysSign()
}
}
);
schedule.scheduleJob(set.allSignTime, function() {
if (set.isSign) {
allSign()
}
});
} }

View File

@ -4,7 +4,13 @@ cookiesDoc: docs.qq.com/doc/DV2tDY2ltSFdtbU9z
isPushSign: false isPushSign: false
# 米游社米币签到定时任务Cron表达式默认00:02开始执行签到 # 米游社米币签到定时任务Cron表达式默认00:02开始执行签到
mysBbsTime: 0 2 0 * * ? mysBbsTime: 0 2 0 * * ?
# 米币是否自动签到
ismysSign: true
# 签到成功是否推送 # 签到成功是否推送
isAllSign: false isAllSign: false
# 米游社签到定时任务Cron表达式默认00:02开始执行签到 # 米游社签到定时任务Cron表达式默认00:02开始执行签到
allSignTime: 0 2 0 * * ? allSignTime: 0 2 0 * * ?
# 是否自动签到
isSign: true