All Projects → lavaclient → lavaclient

lavaclient / lavaclient

Licence: Apache-2.0 License
A simple, easy-to-use, and flexible lavalink client for node.js

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to lavaclient

Lavalink.kt
Coroutine based client for Lavalink (Kotlin and Java)
Stars: ✭ 31 (-63.53%)
Mutual labels:  lavalink
Laffey
An adorable lavalink discord music bot that has a lot of features inside it.
Stars: ✭ 82 (-3.53%)
Mutual labels:  lavalink
Lavalink
Standalone audio sending node based on Lavaplayer.
Stars: ✭ 933 (+997.65%)
Mutual labels:  lavalink
lavalink-music-bot-2021
Advance Discord Lavalink Music Bot With Spotify and Buttons Help Menu || Best Music Quality || Radio Commands
Stars: ✭ 26 (-69.41%)
Mutual labels:  lavalink
lavalink
A custom version of lavalink with more features
Stars: ✭ 66 (-22.35%)
Mutual labels:  lavalink
noteblock
A open-source music bot based on lavalink.
Stars: ✭ 93 (+9.41%)
Mutual labels:  lavalink
heroku-lavalink
Deploy lavalink on heroku.
Stars: ✭ 46 (-45.88%)
Mutual labels:  lavalink
Lavalink.py
A wrapper for Lavalink in Python, which aims to be powerful and intuitive.
Stars: ✭ 162 (+90.59%)
Mutual labels:  lavalink
Red-Lavalink
Lavalink client library used in Red-DiscordBot
Stars: ✭ 22 (-74.12%)
Mutual labels:  lavalink
Music-Discord-Bot
A music Discord bot with more than 30+ commands which allows to play music on your server efficiently. Supports Youtube, Spotify, Deezer and Soundcloud links. Skips intros and blanks in the music with Sponsorblock.
Stars: ✭ 57 (-32.94%)
Mutual labels:  lavalink
Spacebot
An open-source, multipurpose, configurable discord bot that does it all (that's the plan, at least)
Stars: ✭ 41 (-51.76%)
Mutual labels:  lavalink
lavaqueue
A queue system for Lavalink, backed by Redis.
Stars: ✭ 24 (-71.76%)
Mutual labels:  lavalink
NanoSpace
Erela.js & Discord.js@v14 (Prefix Commands!)
Stars: ✭ 59 (-30.59%)
Mutual labels:  lavalink
Discord-Music-Turret-Bot
A standalone Discord music bot, made with DSharpPlus, using Lavalink.
Stars: ✭ 14 (-83.53%)
Mutual labels:  lavalink
lavamusic
lavalink music bot base in erela.js and discord.js v13
Stars: ✭ 210 (+147.06%)
Mutual labels:  lavalink
Discord Music Bot
Discord Music Bot. Play, Playlist, Welcome and Administrative commands.
Stars: ✭ 18 (-78.82%)
Mutual labels:  lavalink
Lavacord
A easy to use Lavalink client that can be used with any discord api wrapper
Stars: ✭ 62 (-27.06%)
Mutual labels:  lavalink
discord-lavalink-music-bot
This is music bot for discord made with erelajs, lavalink, discordjs v13-dev
Stars: ✭ 34 (-60%)
Mutual labels:  lavalink
LavaJS
A lightweight and Dynamic LavaLink wrapper for Discord bots. Playing music has never been easier!
Stars: ✭ 14 (-83.53%)
Mutual labels:  lavalink
Jericho-Player
LightWeight Framework for discord.js v13 Music Bots and Radio Bots with fast moderation with commands and no memory leak.
Stars: ✭ 19 (-77.65%)
Mutual labels:  lavalink

A lightweight and powerful lavalink client for nodejs.

  • Easy-to-use: lavaclient has a neat and user-friendly promise-based api.
  • Performant: designed to be small and lightweight, it's a great choice for any project.
  • Library Agnostic: lavaclient doesn't require you to use a specific discord library. Use anything you want!

Support Server

Installation

node.js v14 or newer is required

Stable
yarn add lavaclient # or npm install
Beta (may be outdated)
yarn add lavaclient@beta # or npm install

Usage

Setup

import { Node, Cluster } from "lavaclient";

const info = { host: "localhost", port: 2333, password: "youshallnotpass" }

const lavalink = new Node({
    connection: info,
    sendGatewayPayload: (id, payload) => sendWithDiscordLib(id, payload)
});

// or for clustering:

const lavalink = new Cluster({
    nodes: [ { id: "main", ...info } ],
    sendGatewayPayload: (id, payload) => sendWithDiscordLib(id, payload)
});

lavalink.connect("870267613635309618");

Handling Voice Updates

Lavalink requires voice updates to play audio in a voice channel, this may vary from library to library.

What you need for correctly sending voice updates to lavalink:

  1. A connection to the Discord gateway.
  2. Raw Voice State and Server updates
  3. Passing the data of the voice update to (Cluster|Node)#handleVoiceUpdate

Playing Music

const results = await lavalink.rest.loadTracks("ytsearch:never gonna give you up");

await lavalink
    .createPlayer("830616783199010857")
    .connect("830638203739308053")
    .play(results.tracks[0]);

this is a very poor way of playing music btw... checkout our discord.js example


Need some more help? Join our Support Server

Deno

If you're looking for a Deno variant of lavaclient... I've got you covered!!


lavaclient © 2018 - 2022

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].