Content-Length: 302453 | pFad | http://github.com/PARASDOCS/poru

83 GitHub - PARASDOCS/poru: A stable and powerful Lavalink client with some best features
Skip to content
/ poru Public
forked from parasop/poru

A stable and powerful Lavalink client with some best features

License

Notifications You must be signed in to change notification settings

PARASDOCS/poru

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord npm Github Stars GitHub issues Snyk Vulnerabilities for npm package NPM

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

// main file
// Require both libraries
const { Client } = require("discord.js");
const { Poru } = require("poru");

// Initiate both main classes
const client = new Client();

// Define some options for the node
const nodes = [
  {
    host: "localhost",
    password: "youshallnotpass",
    port: 2333,
    secure:false
  }
];

// Assign Manager to the client variable
client.poru = new Poru(client,nodes);

// Emitted whenever a node connects
client.poru.on("nodeConnect", node => {
    console.log(`Node "${node.name}" connected.`)
})

// Emitted whenever a node encountered an error
client.poru.on("nodeError", (node, error) => {
    console.log(`Node "${node.name}" encountered an error`)
})

// Listen for when the client becomes ready
client.once("ready", () => {
  client.poru.init(client);
  console.log(`Logged in as ${client.user.tag}`);
});


// Finally login at the END of your code
client.login("your bot token here");
// creating player
const player = await client.poru.createConnection({
  guild: message.guild.id,
  voiceChannel: message.member.voice.channel.id,
  textChannel: message.channel,
  selfDeaf: true,
  selfMute: false, 
  })
  // Getting tracks
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 .

About

A stable and powerful Lavalink client with some best features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/PARASDOCS/poru

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy