From b24c32a87780cc44439046052be03e28b4986bce Mon Sep 17 00:00:00 2001 From: shanmite Date: Fri, 20 Aug 2021 14:38:14 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E5=9B=BE=E7=89=87=E6=8D=A2=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++------ doc/TG_PUSH.md | 6 +++--- doc/linux_schedule.md | 8 ++++---- doc/win_schedule.md | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 9a10208..2f86df7 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Chrome浏览器: (此步骤是为了方便后续采用JS获取Cookies,获取完毕后应再次勾选) -![取消httponly](doc/pic/getCookies.png) +![取消httponly](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/getCookies.png) 3. 在Console中复制以下代码回车 @@ -96,7 +96,7 @@ Chrome浏览器: 6. 键入`lottery start`启动抽奖|`lottery check`检测中奖|`lottery clear`清理动态 > 或者新建文本文档写入`lottery start`然后更改扩展名为.bat点击运行 7. 运行截图 - ![lottery_start](doc/pic/lottery_start.png) + ![lottery_start](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/lottery_start.png) #### 以源码方式运行 @@ -110,7 +110,7 @@ step1: 下载代码到本地 [点此下载](https://github.com/shanmiteko/LotteryAutoScript/archive/refs/heads/main.zip)或如图示下载↓ -![点我加载下载操作图示](doc/pic/download.png) +![点我加载下载操作图示](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/download.png) 下载的压缩包解压后修改env.example.js文件,详见step3 @@ -118,7 +118,7 @@ step2: 下载并安装Node.js [点此进入nodejs下载页面](http://nodejs.cn/download) -![点我加载下载nodejs操作图示](doc/pic/nodejs.png) +![点我加载下载nodejs操作图示](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/nodejs.png) step3:修改env.example.js文件及创建运行文件(打开扩展名显示) @@ -230,14 +230,14 @@ rm -rf lottery/ | :---------------: | :--------------------------------------------------------------------------------: | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `SCKEY` | 微信server酱推送(于2021/4月下线) | 非必须 | server酱的微信通知[官方文档](http://sc.ftqq.com/3.version) | | `SENDKEY` | 微信server酱(Turbo版)推送 | 非必须 | [获取SENDKEY](https://sct.ftqq.com/sendkey) [选择消息通道](https://sct.ftqq.com/forward) | -| `BARK_PUSH` | [BARK推送](https://apps.apple.com/us/app/bark-customed-notifications/id1403753865) | 非必须 | IOS用户下载BARK这个APP,填写内容是app提供的`设备码`,例如:https://api.day.app/123 ,那么此处的设备码就是`123`,再不懂看 [这个图](doc/pic/bark.jpg)(注:支持自建填完整链接即可) | +| `BARK_PUSH` | [BARK推送](https://apps.apple.com/us/app/bark-customed-notifications/id1403753865) | 非必须 | IOS用户下载BARK这个APP,填写内容是app提供的`设备码`,例如:https://api.day.app/123 ,那么此处的设备码就是`123`,再不懂看 [这个图](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/bark.jpg)(注:支持自建填完整链接即可) | | `BARK_SOUND` | [BARK推送](https://apps.apple.com/us/app/bark-customed-notifications/id1403753865) | 非必须 | bark推送声音设置,例如`choo`,具体值请在`bark`-`推送铃声`-`查看所有铃声` | | `TG_BOT_TOKEN` | telegram推送 | 非必须 | tg推送(需设备可连接外网),`TG_BOT_TOKEN`和`TG_USER_ID`两者必需,填写自己申请[@BotFather](https://t.me/BotFather)的Token,如`10xxx4:AAFcqxxxxgER5uw` , [具体教程](doc/TG_PUSH.md) | | `TG_USER_ID` | telegram推送 | 非必须 | tg推送(需设备可连接外网),`TG_BOT_TOKEN`和`TG_USER_ID`两者必需,填写[@getuseridbot](https://t.me/getuseridbot)中获取到的纯数字ID, [具体教程](doc/TG_PUSH.md) | | `TG_PROXY_HOST` | Telegram 代理的 IP | 非必须 | 代理类型为 http。例子:http代理 http://127.0.0.1:1080 则填写 127.0.0.1 | | `TG_PROXY_PORT` | Telegram 代理的端口 | 非必须 | 例子:http代理 http://127.0.0.1:1080 则填写 1080 | | `DD_BOT_TOKEN` | 钉钉推送 | 非必须 | 钉钉推送(`DD_BOT_TOKEN`和`DD_BOT_SECRET`两者必需)[官方文档](https://ding-doc.dingtalk.com/doc#/serverapi2/qf2nxq) ,只需`https://oapi.dingtalk.com/robot/send?access_token=XXX` 等于`=`符号后面的XXX即可 | -| `DD_BOT_SECRET` | 钉钉推送 | 非必须 | (`DD_BOT_TOKEN`和`DD_BOT_SECRET`两者必需) ,密钥,机器人安全设置页面,加签一栏下面显示的SEC开头的`SECXXXXXXXXXX`等字符 , 注:钉钉机器人安全设置只需勾选`加签`即可,其他选项不要勾选,再不懂看 [这个图](doc/pic/DD_bot.png) | +| `DD_BOT_SECRET` | 钉钉推送 | 非必须 | (`DD_BOT_TOKEN`和`DD_BOT_SECRET`两者必需) ,密钥,机器人安全设置页面,加签一栏下面显示的SEC开头的`SECXXXXXXXXXX`等字符 , 注:钉钉机器人安全设置只需勾选`加签`即可,其他选项不要勾选,再不懂看 [这个图](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/DD_bot.png) | | `IGOT_PUSH_KEY` | iGot推送 | 非必须 | iGot聚合推送,支持多方式推送,确保消息可达。 [参考文档](https://wahao.github.io/Bark-MP-helper ) | | `QQ_SKEY` | 酷推(Cool Push)推送 | 非必须 | 推送所需的Skey,登录后获取Skey [参考文档](https://cp.xuthus.cc/) | | `QQ_MODE` | 酷推(Cool Push)推送 | 非必须 | 推送方式(send或group或者wx,默认send) [参考文档](https://cp.xuthus.cc/) | diff --git a/doc/TG_PUSH.md b/doc/TG_PUSH.md index ee0eaa2..e9ad1be 100644 --- a/doc/TG_PUSH.md +++ b/doc/TG_PUSH.md @@ -4,16 +4,16 @@ Ⅰ.首先在Telegram上搜索[BotFather](https://t.me/BotFather)机器人
-![TG_PUSH1](pic/TG_PUSH1.png) +![TG_PUSH1](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/TG_PUSH1.png) Ⅱ.利用[BotFather](https://t.me/BotFather)创建一个属于自己的通知机器人,按照下图中的1、2、3步骤拿到token,格式形如```10xxx4:AAFcqxxxxgER5uw```。填入```TG_BOT_TOKEN```
-![TG_PUSH2](pic/TG_PUSH2.png)
+![TG_PUSH2](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/TG_PUSH2.png)
**新创建的机器人需要跟它发一条消息来开启对话,否则可能会遇到secret填对了但是收不到消息的情况**
Ⅲ.再次在Telegram上搜索[getuserIDbot](https://t.me/getuserIDbot)机器人,获取UserID。填入```TG_USER_ID```
-![TG_PUSH3](pic/TG_PUSH3.png) +![TG_PUSH3](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/TG_PUSH3.png) 至此,获取**TG_BOT_TOKEN**以及**TG_USER_ID**的教程结束 diff --git a/doc/linux_schedule.md b/doc/linux_schedule.md index 444c9df..51651f2 100644 --- a/doc/linux_schedule.md +++ b/doc/linux_schedule.md @@ -13,7 +13,7 @@ git clone https://github.com/shanmite/LotteryAutoScript.git ``` -![image_download](pic/image_download.png) +![image_download](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/image_download.png) **注意**: github访问下载速度可能很慢, 如果卡住了可以通过Github镜像网站下载 @@ -38,7 +38,7 @@ vim env.js # 此处可查阅Vim的使用手册 ``` -![image-envjs](pic/image-envjs.png) +![image-envjs](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/image-envjs.png) 说明: `"CLEAR"`项设置为`true`, 才可以开启自动清理动态功能 @@ -55,7 +55,7 @@ vim env.js crontab -e ``` -![crontab](pic/crontab.png) +![crontab](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/crontab.png) `SHELL` 和 `PATH`照着填 @@ -74,7 +74,7 @@ crontab -e 看看有没有效果 -![image-start](pic/image-start.png) +![image-start](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/image-start.png) 7.如果本地的脚本需要更新 diff --git a/doc/win_schedule.md b/doc/win_schedule.md index 9e99d20..42efa36 100644 --- a/doc/win_schedule.md +++ b/doc/win_schedule.md @@ -16,13 +16,13 @@ 7.在`操作`页面中点击`新建`,选择操作为`启动程序`,在设置里点击浏览找到`start.bat`文件并选择,在`起始于(可选)(T):`中的空白框里输入`start.bat`文件的目录地址,也就是`程序或脚本(P):`里`start.bat`的前面那一串目录地址,最后是以`\`结尾的 ,填好东西后按下面`确认` -![点我加载步骤7结果图示](pic/step_menu.png) +![点我加载步骤7结果图示](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/step_menu.png) 8.在`条件`页面中选择`网络`,设定启动条件为任何连接 9.在`设置`页面中选择如图示选项,或者不修改默认设置 -![点我加载步骤9结果图示](pic/shezhi_renwu.png) +![点我加载步骤9结果图示](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/shezhi_renwu.png) 10.最后按`确定` @@ -30,6 +30,6 @@ 最后你可以在任务列表中选择已有的任务,右边的操作框中选择`运行`点击,启动计划的任务,如下图所示 -![点我加载运行图示](pic/start_renwu.png) +![点我加载运行图示](https://gitee.com/shanmite/LotteryAutoScript/raw/main/doc/pic/start_renwu.png) 具体看任务是否正常执行,你可以看看自己的账号动态的最新转发,运行成功每几分钟自动转发抽奖动态