From ece5ca147b28fe5ff4c0ec2ccaab6340db06bcd0 Mon Sep 17 00:00:00 2001 From: shanmite <1971513084@qq.com> Date: Mon, 7 Dec 2020 16:18:15 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E7=9B=B8=E5=85=B3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 38 ++++++++++++++++++++++++++++++++------ lottery-in-nodejs.js | 2 +- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5cef582..b09b589 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ 通过Github Actions挂载Nodejs脚本 > [Actions官方文档](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions) -默认整点运行,只转发非官方抽奖 +--- + ## 操作步骤 1. fork本仓库 @@ -16,11 +17,36 @@ ![步骤1](https://ftp.bmp.ovh/imgs/2020/11/c4e7ac036199551c.png) ![步骤2](https://ftp.bmp.ovh/imgs/2020/11/dcc3f30e22f6b12a.png) -3. 如果想使用**微信推送**服务请用同样的方法填入`SCKEY` - [Server酱](http://sc.ftqq.com/3.version) - 具体方法可以参考同样参考[BILIBILI-HELPER](https://github.com/JunzhouLiu/BILIBILI-HELPER) +3. 如果想使用Server酱提供的**微信推送**服务请用同样的方法填入`SCKEY` + > [Server酱是什么?](http://sc.ftqq.com/3.version) + +4. 随便改一下`README.md`文件再作一次提交便自动运行 + +--- -4. 随便改一下此文件再作一次提交便自动运行 ## 效果 -![效果](https://ftp.bmp.ovh/imgs/2020/11/87d483cea98563fa.png) +![效果](https://ftp.bmp.ovh/imgs/2020/11/87d483cea98563fa.png) + +--- + +## 部分设置说明 +- 定时运行 + ```yaml + schedule: + - cron: '0 */2 * * *' + ``` + > [填写格式](https://crontab.guru/) +- 模式选择 + ```javascript + /** + * 默认设置 + */ + let config = { + model: '11',/* both */ + chatmodel: '11',/* both */ + } + ``` + [具体含义](https://github.com/shanmite/LotteryAutoScript/issues/2) + +--- diff --git a/lottery-in-nodejs.js b/lottery-in-nodejs.js index c8ea9fa..1691968 100644 --- a/lottery-in-nodejs.js +++ b/lottery-in-nodejs.js @@ -15,7 +15,7 @@ const Script = { * 默认设置 */ let config = { - model: '01',/* both */ + model: '11',/* both */ chatmodel: '01',/* both */ maxday: '-1', /* 不限 */ wait: '60000', /* 60s */