https://github.com/lavaclient/discordjs-example
📦️ example discord.js bot
https://github.com/lavaclient/discordjs-example
Last synced: about 1 month ago
JSON representation
📦️ example discord.js bot
- Host: GitHub
- URL: https://github.com/lavaclient/discordjs-example
- Owner: lavaclient
- Created: 2021-07-30T11:20:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-06T05:39:22.000Z (about 1 year ago)
- Last Synced: 2025-03-30T23:51:07.441Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 33.2 KB
- Stars: 17
- Watchers: 0
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# discord.js v13 example bot
This is an example of lavaclient using discord.js v13
## 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...)