A Rainbow Six Siege Bot
- DotNet Core 2.0
- A Redis Service (can be remote)
- WkHtmlToPDF recommend to use the MXE for windows
Just setup a redis service somewhere. It is used for caching basically everything such as guild settings and reponse messages.
- Download the WkHtmlToPDF zip file.
- Extact its contents somewhere memorable. I extracted mine to D:/wkhtmltox
- Make note of where the wkhtmltoimage.exe is located. We need to store this path later.
- Run
sudo apt-get install xvfb libfontconfig wkhtmltopdf
- Make sure it works. realpath is a good tip.
To run the bot, simply use dotnet run --project DingoBot
. EZ.
When you first run it, a configuration file will be generated. Depending if you are using Visual Studio for debugging or DotNet to run it, the configuration file will be placed in different locations. It is wherever the current working directory is. It is called config.json
by default.
Open this configuration up. You will see its a JSON file with a variety of options:
TokenFile is the relative file that stores the Discord Bot Token. This file is excluded from the git repository.
Resources is the relative path to the Resources folder.
Redis is the connection details to the redis
WkHtmlToImage is the complete path to the wkthtmltoimage executable.
- Windows:
D:\wkhtmltox\bin\wkhtmltoimage.exe
- Linux:
xvfb-run wkhtmltoimage
(needs to be virtualized)
Once these are all configured, run the bot again and it should connect just fine.