Prechádzať zdrojové kódy

feat: 青龙面板支持

mrabit 2 rokov pred
rodič
commit
8f56bacf81
5 zmenil súbory, kde vykonal 17 pridanie a 14 odobranie
  1. 0 1
      .github/workflows/workflow.yml
  2. 1 3
      .gitignore
  3. 9 10
      README.md
  4. 0 0
      config.js
  5. 7 0
      qlAction.js

+ 0 - 1
.github/workflows/workflow.yml

@@ -28,6 +28,5 @@ jobs:
           MT_DEVICEID: ${{ secrets.MT_DEVICEID }}
           BARK: ${{ secrets.BARK }}
         run: |
-          cp config.example.js config.js
           chmod 777 indexAction.js
           node ./indexAction.js

+ 1 - 3
.gitignore

@@ -168,6 +168,4 @@ dist
 *.code-workspace
 
 # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,node
-n
-
-config.js
+n

+ 9 - 10
README.md

@@ -7,20 +7,13 @@
 - [x] 自动旅行
 - [x] 每日首次旅行分享
 - [x] 领取申购耐力值
+- [x] github action 支持
+- [x] 青龙面板支持
 
-### 安装
+### 本地启动
 
 ```shell
 npm i -g pm2
-git clone git@github.com:mrabit/xmtravel.git
-cd xmtravel
-npm install
-```
-
-### 启动
-
-```shell
-cp config.example.js config.js
 # 脚本启动
 pm2 start script.json
 # 日志查看
@@ -29,6 +22,12 @@ pm2 logs xmtravel --out --lines=100
 
 ![xmtravel_log.png](./assets/xmtravel_log.png)
 
+### 青龙面板
+
+```shell
+ql repo https://github.com/mrabit/xmtravel.git "" "index|api|console|config" "api|console|config"
+```
+
 ### 申明
 
 - 本项目仅做学习交流, 禁止用于各种非法途径

+ 0 - 0
config.example.js → config.js


+ 7 - 0
qlAction.js

@@ -0,0 +1,7 @@
+/*
+cron "0-59/20 9-20 * * *" indexAction.js, tag=小茅运旅行
+*/
+const $ = new Env('小茅运旅行');
+const api = require('./api')
+
+api.init()