fix: wechat notification; docs: update README.md
This commit is contained in:
parent
97ca6ee515
commit
7dd5bace01
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -25,4 +25,4 @@ jobs:
|
|||||||
- name: Run sign
|
- name: Run sign
|
||||||
run: |
|
run: |
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
echo "${{ secrets.COOKIE }}" | tr '#' "\n" | xargs -I {} sh -c 'echo "{}" | python3 ./genshin.py'
|
echo "${{ secrets.COOKIE }}" | tr '#' "\n" | sed 's/$/&#${{ secrets.SCKEY }}/g' | xargs -I {} sh -c 'echo "{}" | python3 ./genshin.py'
|
||||||
|
|||||||
18
README.md
18
README.md
@ -32,9 +32,9 @@ Genshin Impact Helper 可以自动化为你获取原神每日福利。
|
|||||||
## 💡特性
|
## 💡特性
|
||||||
|
|
||||||
- [x] **自动签到** 程序会在每天早上自动执行签到流程,也可以随时通过部署教程的`步骤4`手动触发,具体时间参照[此处](.github/workflows/main.yml)
|
- [x] **自动签到** 程序会在每天早上自动执行签到流程,也可以随时通过部署教程的`步骤4`手动触发,具体时间参照[此处](.github/workflows/main.yml)
|
||||||
- [x] **自动同步** 自动从上游源仓库拉取代码至复刻仓库
|
- [x] **支持订阅** 通过配置`SCKEY`开启订阅,每天将签到结果推送到微信上
|
||||||
- [x] **支持多服务器** 支持绑定单个官服或 Bilibili 服的米游社账号,目前不支持同时绑定多个服务器的账号
|
- [x] **支持多账号** 不同账号的`Cookie`之间用`#`分隔,如:`yourCookie1#yourCookie2`
|
||||||
- [x] **支持多账号** 不同`Cookie`值之间用`#`分开即可,如:`<Cookie1>#<Cookie2>`
|
- [x] **支持多角色** 支持绑定官服和B站渠道服角色的米游社账号
|
||||||
|
|
||||||
## 📐部署
|
## 📐部署
|
||||||
|
|
||||||
@ -86,6 +86,10 @@ if (ask == true) {
|
|||||||
|
|
||||||
- 建立名为`COOKIE`的 secret,值为`步骤2`中复制的`Cookie`内容,最后点击`Add secret`
|
- 建立名为`COOKIE`的 secret,值为`步骤2`中复制的`Cookie`内容,最后点击`Add secret`
|
||||||
|
|
||||||
|
- secret名字必须为`COOKIE`!
|
||||||
|
- secret名字必须为`COOKIE`!
|
||||||
|
- secret名字必须为`COOKIE`!
|
||||||
|
|
||||||
> 
|
> 
|
||||||
|
|
||||||
### 4. 启用 Actions
|
### 4. 启用 Actions
|
||||||
@ -138,6 +142,14 @@ Error: Process completed with exit code 255.
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
## 🔔订阅
|
||||||
|
|
||||||
|
若开启订阅推送,无论成功与否,都会收到微信通知。
|
||||||
|
|
||||||
|
- 使用 GitHub 登录 [sc.ftqq.com](http://sc.ftqq.com/?c=github&a=login) 创建账号
|
||||||
|
- 点击「[发送消息](http://sc.ftqq.com/?c=code)」,获取`SCKEY`
|
||||||
|
- 点击「[微信推送](http://sc.ftqq.com/?c=wechat&a=bind)」,完成微信绑定
|
||||||
|
- 建立名为`SCKEY`的 secret,并添加获取的 SCKEY 值,开启订阅推送
|
||||||
|
|
||||||
## ❗️协议
|
## ❗️协议
|
||||||
|
|
||||||
|
|||||||
@ -206,7 +206,7 @@ def notify(key, massage):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
secret = input().strip().rsplit(' ', 1)
|
secret = input().strip().split('#')
|
||||||
secret.append('')
|
secret.append('')
|
||||||
cookie=secret[0]
|
cookie=secret[0]
|
||||||
sckey=secret[1]
|
sckey=secret[1]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user