Skip to content

Running the bot on Windows

Nir edited this page Dec 25, 2021 · 1 revision

Install Node

  1. Go to nodejs.org.
  2. Download the current version(v16).
  3. Follow the on-screen instructions to install.

Installing Git

  1. Go to git-scm.com
  2. Download the latest version.
  3. Follow the on-screen instructions to install.

Installing Java 13

  1. Get it from here.

Install NPM Modules

  1. Open command prompt as administrator
  2. Type cd C:\Bots\master-bot (or whatever the file path is for your bot)
  3. Then type npm install discord.js
  4. Then type npm install ffmpeg
  5. Finally, type npm i

Configuration file

  1. Create a file in the bot's root directory called "config.json"
  2. See in the README what needs to be included in the file

Application.yml file

  1. Create a file called application.yml.
  2. Copy everything from here to the file.

Lavalink

  1. Download the latest lavalink jar from here and place it in the projects root directory(same place as application.yml).

Inviting the bot

  1. Go to https://discord.com/api/oauth2/authorize?client_id=**BOT-ID-HERE**&permissions=0&scope=bot
  2. Make sure you replace **BOT-ID-HERE**, with your bot's actual id.
  3. You can get your bot id from the Discord Developer Portal.
  4. Once on that page, you will have to "authorize" the bot to join one of your servers.

Starting your bot

  1. Back to command prompt, make sure you are within the bot root directory.
  2. You can do this by typing cd C:\Bots\master-bot (or whatever your file path is for your bot).
  3. Run the lavalink jar file using java -jar Lavalink.jar in a separate terminal.
  4. Run node index.js.