Skip to content

Installing Windows

mctaylors edited this page May 17, 2023 · 1 revision

Installing .NET 8

First of all, we need to download and install .NET 8 to compile Octobot.

Download .NET 8 here: https://dotnet.microsoft.com/download/dotnet/8.0

Creating a bot in the Discord Developer Portal

Go to the Discord Developer Portal and create a new application by clicking on New Application button on the top right. Open our application and find the Bot tab, then generate and copy its token.

Don't forget to also enable intents!

Compiling Octobot

Using dotnet run

Clone this repository and open it. To do this, open the terminal and enter the following:

git clone https://github.com/TeamOctolings/Octobot
cd Octobot

After that, you can run Octobot using dotnet and your bot token.

dotnet run BOT_TOKEN='ENTER_TOKEN_HERE'

Using dotnet build

Clone this repository and open it. To do this, open the terminal and enter the following:

git clone https://github.com/TeamOctolings/Octobot
cd Octobot

After that, we will need to build our Octobot.

dotnet build

Wait for the compilation to finish. After the compilation completes without errors, we look for the folder with the compiled Octobot, and enter the token we received earlier. After that Octobot can be run.

cd Octobot\bin\Debug\net8.0
$Env:BOT_TOKEN='ENTER_TOKEN_HERE'
.\Octobot.exe