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 -dThe bot is setup to pick important things from environment variables:
- The token comes from
DISCORD_BOT_TOKENvariable and needs to be changed - The status comes from
DISCORD_BOT_ACTIVITYvariable and will default toI'm alive!if not changed - The prefix comes from
DISCORD_BOT_COMMAND_PREFIXvariable 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 runJust remember to set the environment variables.