https://github.com/lachee/dingo-bot
A Rainbow Six Siege bot
https://github.com/lachee/dingo-bot
discord-bot
Last synced: about 2 months ago
JSON representation
A Rainbow Six Siege bot
- Host: GitHub
- URL: https://github.com/lachee/dingo-bot
- Owner: Lachee
- Created: 2020-01-24T07:38:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-31T14:16:56.000Z (over 6 years ago)
- Last Synced: 2025-03-20T07:46:24.509Z (about 1 year ago)
- Topics: discord-bot
- Language: C#
- Size: 447 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Dingo Bot
A Rainbow Six Siege Bot
## Installation
### Requirements:
1. DotNet Core 2.0
2. A Redis Service (can be remote)
3. [WkHtmlToPDF](https://wkhtmltopdf.org/downloads.html) _recommend to use the MXE for windows_
### Redis
Just setup a redis service somewhere. It is used for caching basically everything such as guild settings and reponse messages.
### WkHtmlToPDF
#### Windows
1. Download the [WkHtmlToPDF](https://wkhtmltopdf.org/downloads.html) zip file.
2. Extact its contents somewhere memorable. I extracted mine to D:/wkhtmltox
3. Make note of where the wkhtmltoimage.exe is located. We need to store this path later.
#### Ubuntu
1. Run `sudo apt-get install xvfb libfontconfig wkhtmltopdf`
2. Make sure it works. realpath is a good tip.
### The Bot
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.