Skip to content

A simple, easy-to-use, and flexible lavalink client for node.js

License

Notifications You must be signed in to change notification settings

Storm-Developmentz/lavaclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LavaClient

discord servercodacy ratingnpm version

A simple, easy-to-use, and flexible node.js lavalink client.

  • Flexible: LavaClient doesn't depend on a specific Discord library. Each class can be changed relatively easily, allowing everything to be customized.
  • Plugins: Provides a simple Plugin class that the Manager can load, you can view the Plugins Guide for a basic implementation.
  • Easy-to-use: LavaClient has a neat and user-friendly promise-based api.
  • Performant: Designed to be small and performant, it's a great choice for any sized project.

Installation

node.js v14 or newer needed.

npm install lavaclient
# or
yarn add lavaclient

Usage

Documentation: https://lavaclient.js.org/ outdated (join our support server for updates)

import LavaClient from "lavaclient";

const nodes = [
  {
    id: "My Node",
    host: "localhost",
    port: 3000,
    password: "lavaclient-is-amazing"
  }
]

const manager = new LavaClient.Manager(nodes, {
  send(id, payload) {
    sendPayloadToDiscord()
    // check out our guides for an eris and discord.js example.
  }
});

await manager.init("your client id.");

// Use these two methods when receiving voice state and server updates.
await manager.stateUpdate(<update>);
await manager.serverUpdate(<update>);

Bot Showcase

Here's a few bots that use Lavaclient in production!

If you'd like your bot listed just join our discord and ask 2D#5773!


melike2d © 2020

About

A simple, easy-to-use, and flexible lavalink client for node.js

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%