https://github.com/starudream/skland-task
skland task 森空岛 每日任务 明日方舟
https://github.com/starudream/skland-task
skland
Last synced: about 2 months ago
JSON representation
skland task 森空岛 每日任务 明日方舟
- Host: GitHub
- URL: https://github.com/starudream/skland-task
- Owner: starudream
- License: apache-2.0
- Archived: true
- Created: 2023-11-07T04:39:38.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-06T05:38:37.000Z (7 months ago)
- Last Synced: 2025-02-22T20:31:14.995Z (2 months ago)
- Topics: skland
- Language: Go
- Homepage:
- Size: 226 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TO: https://github.com/starudream/sign-task
---
# Skland-Task


## Config
- `global` [doc](https://github.com/starudream/go-lib/blob/v2/README.md) - [example](https://github.com/starudream/go-lib/blob/v2/app.example.yaml)
以下参数无需手动增加,可通过下方 [Account](#account) 发送验证码自动获取
```yaml
accounts:
- phone: "手机号码"
hypergryph:
token: "手机登录后的 token,skland.cred 失效时需要使用该 token 重新登陆"
code: "授权森空岛后的 code"
skland:
cred: "通过上方 hypergryph.code 获取到的凭证"
token: "通过上方 hypergryph.code 获取到的 token,用于签名,会过期,需要手动 refresh"cron:
spec: "签到奖励执行时间,默认 5 4 8 * * * 即每天 08:04:05"
startup: "是否启动时执行一次,默认 false"
```## Usage
```
> skland-task -h
Usage:
skland-task [command]Available Commands:
account Manage accounts
config Manage config
cron Run as cron job
notify Manage notify
service Manage service
sign Run sign taskFlags:
-c, --config string path to config file
-h, --help help for skland-task
-v, --version version for skland-taskUse "skland-task [command] --help" for more information about a command.
```### Account
```shell
# list accounts
skland-task account list
# add account by send phone validate code
skland-task account login
```### SignForum `森空岛每日任务`
```shell
skland-task sign forum
```### SignGame `森空岛游戏签到`
```shell
skland-task sign game
```### Cron
```shell
skland-task cron
```### Service
```shell
# register as system service
skland-task service --user --config skland-task.yaml install
skland-task service start
skland-task service status
```## Docker
```shell
mkdir skland && touch skland/app.yaml
docker run -it --rm -v $(pwd)/skland:/skland -e DEBUG=true starudream/skland-task /skland-task -c /skland/app.yaml account login
docker run -it --rm -v $(pwd)/skland:/skland -e DEBUG=true starudream/skland-task /skland-task -c /skland/app.yaml sign game
```## Docker Compose
```yaml
version: "3"
services:
skland:
image: starudream/skland-task
container_name: skland
restart: always
command: /skland-task -c /skland/app.yaml cron
volumes:
- "./skland/:/skland"
environment:
DEBUG: "true"
app.log.console.level: "info"
app.log.file.enabled: "true"
app.log.file.level: "debug"
app.log.file.filename: "/skland/app.log"
app.cron.spec: "5 4 8 * * *"
```## Thanks
- [skland-sign-header](https://gitee.com/FancyCabbage/skyland-auto-sign#sign-header)
## [License](./LICENSE)