Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.
/ kuro-task Public archive

kuro task 库街区 每日任务 鸣潮

License

Notifications You must be signed in to change notification settings

starudream/kuro-task

Repository files navigation


Kuro-Task

golang release license

Config

以下参数暂时需要电脑登录 库街区 手动获取,再通过下方 Account 新增

accounts:
  - phone: "手机号码,作为唯一标识使用"
    dev_code: "设备识别码,LocalStorage 中的 dc"
    token: "授权令牌,LocalStorage 中的 auth_token"
    source: "来源,目前有 android 和 h5,可空默认 h5"
    version: "版本,LocalStorage 中的 av,可空默认 2.2.0"
cron:
  spec: "签到奖励执行时间,默认 5 4 8 * * * 即每天 08:04:05"
  startup: "是否启动时执行一次,默认 false"

Usage

> kuro-task -h
Usage:
  kuro-task [command]

Available Commands:
  account     Manage accounts
  config      Manage config
  cron        Run as cron job
  notify      Manage notify
  service     Manage service
  sign        Run sign task

Flags:
  -c, --config string   path to config file
  -h, --help            help for kuro-task
  -v, --version         version for kuro-task

Use "kuro-task [command] --help" for more information about a command.

Account

下载项目中 geetest.html 文件,本地打开进行验证后,复制极验结果,并使用 login 命令。

# list accounts
kuro-task account list
# add account from h5 website token
kuro-task account add <account phone>
# add account by phone verification code
kuro-task account login <account phone>

SignGame 库街区游戏签到

kuro-task sign game <account phone>

Cron

kuro-task cron

Service

# register as system service
kuro-task service --user --config kuro-task.yaml install
kuro-task service start
kuro-task service status

Docker

mkdir kuro && touch kuro/app.yaml
docker run -it --rm -v $(pwd)/kuro:/kuro -e DEBUG=true starudream/kuro-task /kuro-task -c /kuro/app.yaml account add <account phone>
docker run -it --rm -v $(pwd)/kuro:/kuro -e DEBUG=true starudream/kuro-task /kuro-task -c /kuro/app.yaml sign game <account phone>

Docker Compose

version: "3"
services:
  kuro:
    image: starudream/kuro-task
    container_name: kuro
    restart: always
    command: /kuro-task -c /kuro/app.yaml cron
    volumes:
      - "./kuro/:/kuro"
    environment:
      DEBUG: "true"
      app.log.console.level: "info"
      app.log.file.enabled: "true"
      app.log.file.level: "debug"
      app.log.file.filename: "/kuro/app.log"
      app.cron.spec: "26 7 8 * * *"