Skip to content
This repository was archived by the owner on Oct 5, 2025. It is now read-only.

zenpaiang/wos-bot

Repository files navigation

wos-bot (captcha + v2 update!)

a whiteout survival giftcode redeemer + utility bot using ddddocr for captcha detection

this bot is not related to relo's bot in any way.

if you like the project, please give it a ⭐! 😊

hardware requirements

this bot uses an onnx based OCR model which is not only fast, but is ~50MB in size, meaning the bot runs at under 100MB of RAM, and doesn't need any special hardware such as a CUDA supported GPU. this also means that the storage space needed is <1GB, allowing it to be run on a cheap VPS, a free one, or even on small SBCs.

issues

please report any issues by creating an issue on github or messaging me on discord @zenpaiang

usage

Note

if you are migrating from v1, head to migration

  1. clone the repo: git clone https://github.com/zenpaiang/wos-bot.git
  2. configure the bot's config.json
  3. rename players.example.json to players.json
  4. install dependencies pip install -r requirements.txt or pip3 install -r requirements.txt
  5. run the bot using python bot.py or python3 bot.py

Tip

if you're on python 3.13 and above, run pip install -r requirements.txt --ignore-requires-python for step 4 instead. this is a temporary workaround.

configuration

configuration is done by renaming config.example.json to config.json, which has 7 values to configure

{
    "token": "[PUT YOUR BOT TOKEN HERE]",
    "admins": [],
    "players_file": "players.json",
    "bot_owner": 0,
    "auto_rename_users_during_redemption": true,
    "sync_discord_usernames": false,
    "redeem_locked_to_admins": false,
    "members_lock_to_admins": true
}

token: your bot token. for instructions on how to obtain one, click here

admins: this value is configured inside the bot

players_file: this value stores the path to the players database. do not change if you don't know what you're doing.

bot_owner: put your discord user ID here. for instructions on how to get it, click here

auto_rename_users_during_redemption: this value is configured inside the bot with /admin settings. it controls whether to automatically rename users in your database during redemption.

sync_discord_usernames: this value is configured inside the bot with /admin settings. it controls whether the bot will sync wos usernames to linked discord users. (note: this feature is currently under development and does not work.)

redeem_locked_to_admins: this value is configured inside the bot with /admin settings. it controls whether /redeem is usable by non-admins

members_lock_to_admins: this value is configured inside the bot with /admin settings. it controls whether /giftcode users is usable by non-admins

migration from v1

Caution

doing this WILL override your old players.json file so if for whatever reason you still want the old version, please make a backup before doing this.

after cloning this repository:

  1. copy your old players.json file into the directory
  2. run the migration tool python migration_tool.py

commands / features

view the commands and features list here

to-do list

  • captcha detection + v2 update (c5c5b47)
  • functioning user list (342f626)
  • better user list with search feature
  • wos-database caching
  • wos to discord player name sync
  • auto update system
  • bulk addition of ids
  • interactive setup process

About

a whiteout survival giftcode redeemer and utility bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages