Discord bot written in C# using NetCord, targeting .NET 10 with AOT compilation.
- .NET SDK 10.0+
The deploy script expects a .env file at /opt/discord-bot.env on the VPS with the following variables:
DISCORD_TOKEN=...
DISCORD_CHANNEL_ID=...After a .NET SDK update (e.g. via the system package manager), there can be a version conflict between the installed SDK and the workload manifests. If dotnet build fails with a Workload set version X.X.X has missing manifests error, run:
sudo dotnet workload updateThen build normally:
dotnet build