Upload the project. In Files, upload your .csproj and source files (not the bin and obj folders). On every start the server builds your project with dotnet publish and then runs it. The first build downloads NuGet packages, so it takes a minute. Leave Project or dll empty to use the only .csproj in the main folder, or type the file name if there are several.
Upload published files. Run dotnet publish -c Release on your computer and upload the contents of the output folder. Set Project or dll to the .dll name, for example MyBot.dll. Starts faster and needs less memory.
Paste your token into Discord bot token. Your code reads it as the environment variable DISCORD_TOKEN. Open Console and start. When the console shows the bot connected, it is online.
Good to know
Building uses memory. A project with many packages may need a plan with 1 GB or more while it builds; a published .dll needs far less. See How much RAM does a Discord bot need.
A build error stops the server with the compiler messages in Console. Fix them and press Start.
Match TargetFramework to the .NET version you chose (net8.0 for .NET 8).
STWÓRZ SWÓJ SERWER GIER GOTOWY, ABY ZACZĄĆ?
Oszczędź nawet 30% na swoim nowym serwerze gier. Wydajność premium, natychmiastowa aktywacja i niezawodność bez kompromisów. Wszystko w lepszej cenie.