Skip to content

Windows

Marko Kajzer edited this page Jul 6, 2021 · 12 revisions

Note

The installation on Windows is a little bit more involved compared to the other platforms. I myself encountered some errors on my test machine and could not continue. However, the described guide should work and bring the bot online on your Windows PC.

If you have a machine that runs Linux, or macOS, or you have a Raspberry Pi lying around, I personally highly recommend using that instead.

Guide

  1. Download Node.js. Go to the website and click on the left button to download the "LTS" version which is recommended for most users.

    Step 1
  2. Install Node.js from the Installer. !!! Make sure to choose the Add to PATH option. !!!

    Step 2
  3. Download the newest version of the Soundbot as a .zip from here. Unpack the archive, for example onto your Desktop.

    Step 3
  4. Take a look at the config.example.json file inside the config folder. Copy it to config.json, change the configuration to your liking and enter your Client ID and Token as described here.

  5. Since the bot is using voice functionality, you will need to install FFmpeg. Follow this link and download the win64 build.

    Step 5
  6. Copy the files in the downloaded archive into the root of the soundbot folder as depicted below.

    Step 6 Step 6 Step 6
  7. Open the Command Prompt as an Administrator. From you Windows Start Menu, just type cmd, right click on the Command Prompt entry and select Run as administrator.

    Step 7
  8. You should see a window that looks similar to the left picture below with the path C:\WINDOWS\system32. Install the windows-build-tools by typing in npm install --global --production --vs2015 --add-python-to-path windows-build-tools as shown in the screenshot.
    ! This step will take some time. !
    In the end, it should look like the second picture below.

    Step 8Step 8

  9. Inside the command prompt, navigate to the folder where you unpacked the archive. This is done by using the cd command. In the screenshot below, the archive was unpacked on the desktop, so the correct command is cd \Users\Marko\Desktop\discord-soundbot-{VERSION}.

    Step 9
  10. Install yarn with npm install -g yarn. Install the remaining dependencies by executing the command yarn install. You can ignore messages that some "peer dependencies" are missing, since they are optional.

    Step 10
  11. Finally, start the bot with yarn start. The bot should print a message similar to this.

Use the following URL to let the bot join your server!
https://discordapp.com/oauth2/authorize?client_id={YOUR_CLIENT_ID}&scope=bot
  1. Follow the link and add the bot to your server.

  2. Start adding sounds and have fun!