Skip to content

starudream/sign-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sign-Task

golang release license

project

Feature

  • 斗鱼
    • 领取荧光棒
    • 赠送荧光棒续粉丝牌
  • 库街区
    • 游戏签到(鸣潮)
    • 论坛签到
  • 米游社
    • 游戏签到(原神 崩坏 星铁 绝区零 等)
    • 论坛签到
  • 森空岛
    • 游戏签到(明日方舟)
  • 百度贴吧
    • 客户端签到
  • 阿里云
    • 余额提醒
    • 历史账单详细
    • CDT使用量详细
  • 火山引擎
    • 余额提醒
    • 历史账单详细
    • 方舟模型使用量详细
  • 腾讯云
    • 余额提醒

Config

通用配置
# 日志
#  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:
完整配置
#
# https://github.com/starudream/sign-task
#
# 打码
geetest:
  cron:
    disable: true
    spec: 0 0 12 * * *
    startup: false
    jitter: 10
# 斗鱼
douyu:
  cron:
    disable: true
    spec: 0 0 12 * * *
    startup: false
    jitter: 10
  accounts:
    - phone: douyu_phone
      did: douyu_did
      ltp0: douyu_ltp0
      room: 9999
      assigns:
        - count: 1
        - room: 9999
          all: true
      ignore_expired_check: false
# 库街区
kuro:
  cron:
    disable: true
    spec: 0 0 12 * * *
    startup: false
    jitter: 10
  accounts:
    - phone: kuro_phone
      dev_code: kuro_dev_code
      token: kuro_token
# 米游社
miyoushe:
  cron:
    disable: true
    spec: 0 0 12 * * *
    startup: false
    jitter: 10
  accounts:
    - phone: miyoushe_phone
      device:
        id: device_id
        type: device_type
        name: device_name
        model: device_model
        version: device_version
        channel: device_channel
      mid: miyoushe_mid
      stoken: miyoushe_stoken
      uid: miyoushe_uid
      ctoken: miyoushe_ctoken
      sign_game_ids:
        - "6"
# 森空岛
skland:
  cron:
    disable: true
    spec: 0 0 12 * * *
    startup: false
    jitter: 10
  accounts:
    - phone: skland_phone
      cred: skland_cred
      token: skland_token
# 百度贴吧
tieba:
  cron:
    disable: true
    spec: 0 0 12 * * *
    startup: false
    jitter: 10
  accounts:
    - phone: tieba_phone
      bduss: tieba_bduss
# 阿里云
aliyun:
  cron:
    disable: true
    spec: 0 0 12 * * *
    startup: false
    jitter: 10
  accounts:
    - id: aliyun_id
      secret: aliyun_secret
# 火山引擎
volcengine:
  cron:
    disable: true
    spec: 0 0 12 * * *
    startup: false
    jitter: 10
  accounts:
    - id: volcengine_id
      secret: volcengine_secret
# 腾讯云
qcloud:
  cron:
    disable: true
    spec: 0 0 12 * * *
    startup: false
    jitter: 10
  accounts:
    - id: qcloud_id
      key: qcloud_key
阿里云权限策略
{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "bss:DescribeAcccount",
        "bss:QueryAccountBill",
        "bssapi:DescribeInstanceBill"
      ],
      "Resource": "*"
    }
  ]
}
火山引擎权限策略
{
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "billing:QueryBalanceAcct",
        "billing:ListBillDetail"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "ark:GetUsage",
        "ark:ListEndpoints"
      ],
      "Resource": [
        "*"
      ]
    }
  ]
}
腾讯云权限策略
{
  "statement": [
    {
      "action": [
        "finance:DescribeAccountBalance"
      ],
      "effect": "allow",
      "resource": [
        "*"
      ]
    }
  ],
  "version": "2.0"
}

Usage

Docker

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

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"

About

每日任务

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages