Skip to content

Vulwsztyn/discord-js-music-bot

Repository files navigation

discord.js v14 example bot

This is an example of lavaclient using discord.js v14

Setup

    1. Create an application in the Discord Developer Portal.
    1. Grab the bot token from the "Bot" tab.
    1. Click the Use this template button
    1. Install all dependencies: yarn or npm install
    1. Setup lavalink
      1. Make sure you have java 11 or above installed.
      1. Grab a jar from the Lavalink Releases Page
      1. Create an application.yml in the same folder as the Lavalink.jar
      1. Start lavalink using: java -jar Lavalink.jar
    1. Rename .env.example to .env and replace the value of BOT_TOKEN to the token from step 2
    1. Run the Bot
    • production: yarn start
    • development: yarn dev or yarn dev --force-sync if you're modifying application commands (updating, creating, deleting, etc...)