Giter Site home page Giter Site logo

muh9049 / lavaclient Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lavaclient/lavaclient

0.0 0.0 1.0 399 KB

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

Home Page: https://lavaclient.js.org

License: MIT License

JavaScript 100.00%

lavaclient's Introduction

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

lavaclient's People

Contributors

birongliu avatar dependabot-preview[bot] avatar dependabot[bot] avatar diced avatar huskydog9988 avatar iitzhyper avatar matievisthekat avatar muh9049 avatar serenmodz21 avatar skye-31 avatar viztea avatar xgraza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.