https://github.com/asc-community/angourimathbot
discord bot for AngouriMath interaction written in C#
https://github.com/asc-community/angourimathbot
Last synced: 4 months ago
JSON representation
discord bot for AngouriMath interaction written in C#
- Host: GitHub
- URL: https://github.com/asc-community/angourimathbot
- Owner: asc-community
- Created: 2020-08-09T11:28:35.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-12T14:37:24.000Z (about 5 years ago)
- Last Synced: 2025-07-02T19:17:37.097Z (4 months ago)
- Language: C#
- Size: 1.52 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DiscordBotTemplate
> Discord bot template code, using the Discord.NET library.
Aimed to be quick to fork and add your commands with all the overhead done for you.
## Features
* Multiple environments for development and production
* Thread safe logging
* Clean startup with early quits ensuring correct setup
* Automatic discovery of commands (thanks to Discord.NET)
* DI setup with a few singletons for injecting into commands
* Reflection-based `help` command, meaning you never have to change the command when you add new ones
* Docker implementation, perfect for running in production.
## Setup
Create environments folders called `Development` and `Production` - each one will be referred to as the env folder.
Then, for each environment respectively, create the following:
1. Create a `config` folder
2. Create a `discordBotToken.txt` file, and place inside your bot token.
3. Create a `config.json` file, and fill it with valid JSON matching the data inside the [Config model file](https://github.com/TheRealHona/DiscordBotTemplate/blob/master/src/DiscordBotTemplate/Models/Config.cs).
The environment folders must be placed in the root directory for Docker in production, otherwise in the build output folder for debugging
### Running in Production
Simply run `./runDocker.sh` on Linux (tested on Debian), and it will build + start the Docker container (automatic restarts on crash).