@awokenshu/lavalink
v1.0.0
Published
A wrapper for Discord bots with simple usage. Playing music has never been easier!
Downloads
3
Maintainers
Readme
Important
You need the following things before you can kick off with LavaJS:
The setup has been covered in our official documentation. Do check it out if you have any doubts.
Basic Startup Guide
- Create an
application.yml
file in theLavalink.jar
directory. - Run the
Lavalink.jar
file in a terminal window usingjava -jar Lavalink.jar
.
Example code for running the client:
const { Client } = require("discord.js");
const { LavaClient } = require("@develofy/lavalink");
const bot = new Client();
const nodes = [
{
host: "localhost",
port: 2333,
password: "mypassword",
retries: 5,
},
];
const lavaClient = new LavaClient(bot, nodes);
bot.log("token");