An open API service indexing awesome lists of open source software.

https://github.com/starudream/sign-task

每日任务
https://github.com/starudream/sign-task

douyu miyoushe skland tieba

Last synced: about 1 month ago
JSON representation

每日任务

Awesome Lists containing this project

README

        

# Sign-Task


golang
release
license



project

## Feature

- [x] 斗鱼
- [x] 领取荧光棒
- [x] 赠送荧光棒续粉丝牌
- [x] 库街区
- [x] 游戏签到(鸣潮)
- [x] 论坛签到
- [x] 米游社
- [x] 游戏签到(原神 崩坏 星铁 绝区零 等)
- [x] 论坛签到
- [x] 森空岛
- [x] 游戏签到(明日方舟)
- [x] 百度贴吧
- [x] 客户端签到
- [x] 阿里云
- [x] 余额提醒
- [x] 火山引擎
- [x] 余额提醒

## Config

通用配置

```yaml
# 日志
# https://pkg.go.dev/github.com/starudream/go-lib/core/v2/config/global#Config
log:
console:
format: text
level: INFO
file:
enabled: true
format: text
level: DEBUG
filename: ""
max_size: 100
max_backups: 10
daily_rotate: true
# 通知
# https://pkg.go.dev/github.com/starudream/go-lib/ntfy/v2#Config
ntfy:
```

完整配置

```yaml
# 打码
geetest:
cron:
spec: 0 10 0 * * *
startup: true
rr:
key: "rrocr.com"
tt:
key: "ttocr.com"
# 斗鱼
douyu:
cron:
spec: 0 1 0 * * *
jitter: 3
accounts:
- phone: ""
did: ""
ltp0: ""
room: ""
assigns:
- count: 1
- room: 9999
all: true
ignore_expired_check: false
# 库街区
kuro:
accounts:
- phone: ""
dev_code: ""
token: ""
# 米游社
miyoushe:
cron:
spec: 0 5 0 * * *
jitter: 3
accounts:
- phone: ""
device:
id: ""
type: ""
name: ""
model: ""
version: ""
channel: ""
mid: ""
stoken: ""
uid: ""
ctoken: ""
sign_game_ids:
- "6"
# 森空岛
skland:
cron:
spec: 0 3 0 * * *
jitter: 3
accounts:
- phone: ""
cred: ""
token: ""
# 百度贴吧
tieba:
cron:
spec: 0 2 0 * * *
jitter: 3
accounts:
- phone: ""
bduss: ""
# 阿里云
aliyun:
cron:
spec: 10 0 0 * * *
accounts:
- id: ""
secret: ""
# 火山引擎
volcengine:
cron:
spec: 10 0 0 * * *
accounts:
- id: ""
secret: ""
```

阿里云权限策略

```json
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": "bssapi:QueryAccountBalance",
"Resource": "*"
}
]
}
```

火山引擎权限策略

```json
{
"Statement": [
{
"Effect": "Allow",
"Action": [
"billing:QueryBalanceAcct"
],
"Resource": [
"*"
]
}
]
}
```

## Usage

### Docker

```shell
mkdir sign && touch sign/app.yaml
docker run -it --rm -v $(pwd)/sign:/sign -e DEBUG=true starudream/sign-task /sign-task -c /sign/app.yaml --help
```

### Docker Compose

```yaml
version: "3"

services:
sign:
image: starudream/sign-task
container_name: sign
restart: always
command: /sign-task -c /sign/app.yaml cron
volumes:
- "./sign/:/sign"
environment:
DEBUG: "true"
app.log.console.level: "info"
app.log.file.enabled: "true"
app.log.file.level: "debug"
app.log.file.filename: "/sign/app.log"
```

## [License](./LICENSE)