Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A stable and powerful Lavalink client with some best features

License

NotificationsYou must be signed in to change notification settings

parasop/poru

Repository files navigation

Poru Logo

DiscordnpmGitHub StarsGitHub issuesSnyk Vulnerabilities for npm packageNPM

note: this version supports only Lavalink v4 or above

Poru NPM Package

Table of contents

Installation

# Using npmnpm install poru# Using yarnyarn add poru

About

To use, you need a configuredLavalink instance.

  • Stable client
  • Support TypeScript
  • 100% Compatible with Lavalink
  • Object-oriented
  • 100% Customizable
  • Easy to setup
  • Inbuilt Queue System
  • Inbuilt support for Spotify, Apple Music, and Deezer

Implementation Repo:

Note: Send PR to add your repo here

URLFeaturesAdditional Information
Poru MusicBasic exampleWorks with the latest Discord.js version
The world machineSee GitHub repo for the full list-
LunoxLook over the repo for the full list of featuresSimply powerful Discord Music Bot

Example usage basic bot

const{ Client, GatewayIntentBits}=require("discord.js");const{ Poru}=require("poru");constnodes=[{name:"local-node",host:"localhost",port:2333,password:"youshallnotpass",},];constPoruOptions={library:"discord.js",defaultPlatform:"scsearch",};constclient=newClient({intents:[GatewayIntentBits.Guilds,GatewayIntentBits.GuildMessages,GatewayIntentBits.GuildVoiceStates,GatewayIntentBits.MessageContent,],});client.poru=newPoru(client,nodes,PoruOptions);client.poru.on("trackStart",(player,track)=>{constchannel=client.channels.cache.get(player.textChannel);returnchannel.send(`Now playing \`${track.info.title}\``);});client.on("ready",()=>{console.log("Ready!");client.poru.init(client);});client.on("interactionCreate",async(interaction)=>{if(!interaction.isChatInputCommand())return;if(!interaction.member.voice.channel){returninteraction.reply({content:`Please connect with a voice channel `,ephemeral:true,});}consttrack=interaction.options.getString("track");constres=awaitclient.poru.resolve({query:track,source:"scsearch",requester:interaction.member});if(res.loadType==="error"){returninteraction.reply("Failed to load track.");}elseif(res.loadType==="empty"){returninteraction.reply("No source found!");}// Create connection with Discord voice channelconstplayer=client.poru.createConnection({guildId:interaction.guild.id,voiceChannel:interaction.member.voice.channelId,textChannel:interaction.channel.id,deaf:true,});if(res.loadType==="playlist"){for(consttrackofres.tracks){track.info.requester=interaction.user;player.queue.add(track);}interaction.reply(`${res.playlistInfo.name} has been loaded with${res.tracks.length}`);}else{consttrack=res.tracks[0];track.info.requester=interaction.user;player.queue.add(track);interaction.reply(`Queued Track \n \`${track.info.title}\``)}if(!player.isPlaying&&player.isConnected)player.play();});client.login("TOKEN");

Plugins list:

Note: Open a PR to add your plugin here

NameLinkAdditional Description
Poru Spotifyporu-spotifyPlugin for integrating Spotify with Poru
Poru Deezerporu-deezerPlugin for integrating Deezer with Poru
Poru Apple Musicporu-applemusicPlugin for integrating Apple Music with Poru

Need Help?

Feel free to join ourDiscord server. Give us suggestions and advice about errors and new features.

With ❤️ byParas.

About

A stable and powerful Lavalink client with some best features

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp