Socket
Book a DemoInstallSign in
Socket

divish

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

divish

An easy lavalink client base on erelajs.

1.2.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

📦 Divish

example for discord.js

const { Manager } = require("divish");

client.music = new Manager({
nodes: [{
host: "localhost",
port: 2333, 
password: "youshallnotpass",
secure: false
}],
send(id, payload) {
    let guild = client.guilds.cache.get(id);
    if (guild) guild.shard.send(payload);
  },
});

const music = client.music;
music.on("nodeConnect", node => console.log(`Node ${node.options.identifier} connected`))
music.on("nodeError", (node, error) => console.log(`Node ${node.options.identifier} had an error: ${error.message}`))
music.on("trackStart", (player, track) => {
client.channels.cache.get(player.textChannel)?.send(`NowPlaying ${track.title}`);
})
music.on("queueEnd", (player) => {
client.channels.cache.get(player.textChannel)?.send("Queue has ended.");
});

Spotify plugin

plugin

notice

This package is base on erelajs but provide more features. so you can use it as advance version of erelajs

update

[+] Fix voice lag. [+] Add typescript options. [+] YouTube music search is available.

made by ronstufer with 💖 and dedication.

Keywords

divish

FAQs

Package last updated on 09 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.