Table of contents
Installation
// Using npm
npm install poru
// Using yarn
yarn add poru
About
To use you need a configured Lavalink instance.
- Stable client
- 100% Compatible with Lavalink
- Object-oriented
- 100% Customizable
- Easy to setup
Implementation
Poru Music Example bot as guide for beginning.
Example usage basic bot
const { Client } = require("discord.js");
const { Poru } = require("poru");
const client = new Client();
const nodes = [
{
host: "localhost",
password: "youshallnotpass",
port: 2333,
secure:false
}
];
client.poru = new Poru(client,nodes);
client.poru.on("nodeConnect", node => {
console.log(`Node "${node.name}" connected.`)
})
client.poru.on("nodeError", (node, error) => {
console.log(`Node "${node.name}" encountered an error`)
})
client.once("ready", () => {
client.poru.init(client;
console.log(`Logged in as ${client.user.tag}`);
});
client.on("raw",async d => await client.poru.packetUpdate(d));
client.login("your bot token here");
const player = await client.poru.createConnection({
guild: message.guild.id,
voiceChannel: message.member.voice.channel.id,
textChannel: message.channel,
selfDeaf: true,
selfMute: false,
})
const resolve = await client.poru.resolve('Ignite',"yt");
Need Help?
Feel free to join our discord server, Give us suggestions and advice about errors and new features.
with ❤️ by Paras .