📦 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.