-
Notifications
You must be signed in to change notification settings - Fork 369
Running the bot on Windows
Nir edited this page Dec 25, 2021
·
1 revision
- Go to nodejs.org.
- Download the current version(v16).
- Follow the on-screen instructions to install.
- Go to git-scm.com
- Download the latest version.
- Follow the on-screen instructions to install.
- Get it from here.
- Open command prompt as administrator
- Type
cd C:\Bots\master-bot
(or whatever the file path is for your bot) - Then type
npm install discord.js
- Then type
npm install ffmpeg
- Finally, type
npm i
- Create a file in the bot's root directory called "config.json"
- See in the README what needs to be included in the file
- Create a file called application.yml.
- Copy everything from here to the file.
- Download the latest lavalink jar from here and place it in the projects root directory(same place as application.yml).
- Go to
https://discord.com/api/oauth2/authorize?client_id=**BOT-ID-HERE**&permissions=0&scope=bot
- Make sure you replace
**BOT-ID-HERE**
, with your bot's actual id. - You can get your bot id from the Discord Developer Portal.
- Once on that page, you will have to "authorize" the bot to join one of your servers.
- Back to command prompt, make sure you are within the bot root directory.
- You can do this by typing
cd C:\Bots\master-bot
(or whatever your file path is for your bot). - Run the lavalink jar file using
java -jar Lavalink.jar
in a separate terminal. - Run
node index.js
.