Code Monkey home page Code Monkey logo

mhybbs-tools's Introduction

mhybbs-tools

米游社签到工具

功能

  • 原神签到
  • 星穹铁道签到

用户配置

每个*.toml文件配置一个需要米游社签到的账号。

配置文件模板位置: ./conf/conf.template.toml

# 账户cookie
cookie = ""

[act]
# 是否进行米游社原神签到
genshin_impact = true
# 是否进行米游社星穹铁道签到
honkai_star_rail = true

[job]
# 预计每日签到的时间
trigger_time = "8:30"

使用

快速启动

pip install -r requirements.txt

mkdir ./config
cp ./conf/conf.template.toml ./config/user.toml

vim ./config/user.toml
# 在配置文件中设置账户cookie

python main.py

通过docker部署

docker run \
  --name mhybbs-tools \
  --restart=always \
  -e TZ="Asia/Shanghai" \
  -e CONFIG_DIR="/app/config" \
  -e JOB_TIME_INTERVAL=30 \
  -e USER_INTERVAL=5 \
  -v "./config:/app/config" \
  -d \
  ghcr.io/azicen/mhybbs-tools:latest

通过docker-compose部署

version: '3.8'

services:
  mhybbs-tools:
    image: "ghcr.io/azicen/mhybbs-tools:latest"
    container_name: mhybbs-tools
    environment:
      TZ: "Asia/Shanghai"
      CONFIG_DIR: "/app/config"
      JOB_TIME_INTERVAL: 30
      USER_INTERVAL: 5
    volumes:
      - "./config:/app/config"

环境变量

变量名 描述 默认值
CONFIG_DIR 配置文件目录 ./config
JOB_TIME_INTERVAL JOB每次执行的时间间隔 30分钟
USER_INTERVAL 两个用户之间的签到时间间隔,用户数量 x USER_INTERVAL 应该小于 JOB_TIME_INTERVAL 5分钟

mhybbs-tools's People

Contributors

azicen avatar null122 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.