This repository contains a complete Discord Bot written in C# using the Discord.NET framework. Feel free to clone it or create your own repository from the template. Expand it as much as you want. The project uses dependency injection and comes ready with ping and help commands. Enjoy!
The project is already dockerized and can be run using the following command:
docker-compose up -d
The bot is setup to pick important things from environment variables:
- The token comes from
DISCORD_BOT_TOKEN
variable and needs to be changed - The status comes from
DISCORD_BOT_ACTIVITY
variable and will default toI'm alive!
if not changed - The prefix comes from
DISCORD_BOT_COMMAND_PREFIX
variable and will default to!
if not changed
I recommend looking into the dockerfile and docker-compose file, they are realy simple and can be expanded upon.
If you wish to run without docker, you cna use your IDE or the command:
dotnet run
Just remember to set the environment variables.