Skip to content

A lightweight and Dynamic LavaLink wrapper for DiscordJS. Playing music has never been easier!

License

Notifications You must be signed in to change notification settings

BruhRain/LavaJS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


LavaJS Logo


Discord License Downloads Dependencies Twitter


Status Banner

Installation

Using the Node Package Manager (NPM)

npm install @anonymousg/lavajs

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.

Documentation and Support

  • Our official documentation is available here.
  • For any further query and support join us at Projects.Me discord.

Basic Startup Guide

  • Create an application.yml file in the Lavalink.jar directory and paste this example in it.
  • Run the Lavalink.jar file in a terminal window using java -jar Lavalink.jar.

Example code for running the client:

// Require Discord and LavaJS clients
const { Client } = require("discord.js");
const { LavaClient } = require("@anonymousg/lavajs");

// New discord client instance
const bot = new Client();

// Create the node options
const nodes = [
  {
    host: "localhost",
    port: 2333,
    password: "mypassword",
  },
];

// New LavaClient instance
const lavaClient = new LavaClient(bot, nodes);

// Login the discord client
bot.log("token");

Contributor

Thanks to Johna-3212 for making the module compatible with TypeScript!

Author

About

A lightweight and Dynamic LavaLink wrapper for DiscordJS. Playing music has never been easier!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%