A Simple Discord bot wrapper for Minimap Renderer.
- Get Python 3.10 or higher
A virtual environment can be created with python3.10 -m venv venv
.
- Clone the repository
git clone https://github.com/WoWs-Builder-Team/minimap_renderer_bot.git
- Install dependencies Depending on preferences, once you've entereted the minimap_renderer_bot directory you would activate the virtual environment.
cd minimap_renderer_bot
pip install git+https://github.com/WoWs-Builder-Team/minimap_renderer.git@develop
pip install -U -r requirements.txt
- Create a
.env
file. (Important)
DISCORD_TOKEN=YOUR_DISCORD_BOT_TOKEN
REDIS_HOST=YOUR_REDIS_HOST
REDIS_PORT=YOUR_REDIS_PORT
REDIS_USERNAME=YOUR_REDIS_USERNAME
REDIS_PASSWORD=YOUR_REDIS_PASSWORD
COOLDOWN_TIMER=60
CD_EXEMPT_USERS='[""]'
The final two are related to the cooldown each user gets between /render commmands, and a list of users you would like to be exempt from the cooldown altogether, using their Discord User IDs.
To start the bot
main.py -r bot
To start the renderer worker
main.py -r worker
This project is licensed under the GNU AGPLv3 License.
-
This project is maintained by
@notyourfather#7816
and@Trackpad#1234
. -
However, it would not have been possible without Monstrofil's replays_unpack!
-
Another Discord bot wrapper is available here.