This is a fork of padtrack's Discord bot, rewritten for nextcord. Contains utilities for World of Warships and other features I find useful.
You may invite padtrack's bot here.
Have questions or suggestions? Click here to join the support server!
- @alpha#9432 - Invaluable insight and the authentication server
- @notyourfather#7816 - The replays renderer and its workers
- @TenguBlade#3158 - Help with creating ship similarity groups
- Monstrofil - replays_unpack, the library that makes working with replays possible
The bot can be started in either testing
or production
.
In production
, the render worker(s) and bot are kept separate, so do the following on both instances:
- Create a new Python >3.9 venv
- Install the dependencies with
pip install -U -r requirements.txt
.
On the bot's instance, additionally install redis-server.
Create a password by commenting the line containing bind 127.0.0.1 ...
and
uncommenting requirepass foobared
, with a password more secure than foobared
.
On the render worker's instance, additionally install ffmpeg.
Finally, create bot/assets/private
and run bot/scripts/setup/setup.py
.
-
Create a new Discord application, and create a bot user for it. It is highly recommended to have a separate testing and production application. Add these tokens to
bot_testing
andbot_production
. -
Generate a secret for the authentication server with
bot/scripts/generate_secret.py
. -
Change the authentication servers' domain to your domain.
-
Create a new Wargaming application. Replace the "token" with the Client ID.
-
Replace the production server's secret with the password you set earlier.
- Add the Client ID of your Wargaming application here.
- Add the secret for the authentication server here.
- Replace the domain with your domain.
Obtain a copy of GameParams.data
from res/content/
using the WoWS Unpacker Tool.
- When placed into
bot/scripts/gameparams/
,run.py
will generategameparams.db
, which should be moved tobot/assets/private/
.