1.0.0 • Published 1 month ago

@awokenshu/lavalink v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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 the Lavalink.jar directory.
  • Run the Lavalink.jar file in a terminal window using java -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");