An open API service indexing awesome lists of open source software.

https://github.com/vulwsztyn/discord-js-music-bot


https://github.com/vulwsztyn/discord-js-music-bot

discord discord-bot discord-bot-template discord-bot-template-ts discord-bots discord-command-handler discord-js discord-js-bot discord-js-template discord-js-v14 discord-js-v14-command-handler discordjs discordjs-typescript discordjs-v14 hacktoberfest music typescript

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

        

# 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](https://discord.com/developers/applications).
- 2. Grab the bot token from the "Bot" tab.
- 3. Click the `Use this template` button
- 4. Install all dependencies: `yarn` or `npm install`
- 5. Setup lavalink
- 1. Make sure you have java 11 or above installed.
- 2. Grab a jar from the [Lavalink Releases Page](https://github.com/freyacodes/lavalink/releases)
- 3. Create an [application.yml](https://github.com/freyacodes/lavalink/blob/master/LavalinkServer/application.yml.example) in the same folder as the Lavalink.jar
- 4. Start lavalink using: `java -jar Lavalink.jar`
- 6. Rename `.env.example` to `.env` and replace the value of `BOT_TOKEN` to the token from step 2
- 7. Run the Bot
- production: `yarn start`
- development: `yarn dev` or `yarn dev --force-sync` if you're modifying **application commands** (updating, creating, deleting, etc...)