npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

discord.js-lavalink-lib

v0.1.8

Published

The fixed version of BluSpring's discord.js-lavalink-lib

Downloads

1

Readme

discord.js-lavalink-musicbot

A Lavalink music bot module based on DarkoPendragon's discord.js-musicbot-addon module. npm package

Please join my Discord server here for assistance with the module: XeriApps Support Discord Server

Prerequisites

  • A Lavalink node.
  • Java 13 (if you don't have one)
  • Node.js 12
  • A brain...

Usage

Install Lavalink. An example application.yml is provided in the "Lavalink" folder.

If you install the actual module, Lavalink should be provided.

To install the module, run npm i -s discord.js-lavalink-musicbot

Notice

If you use Glitch, make sure you set the port to 3000 for both the application.yml and the configuration in the "lavalink" area, because Glitch only works on that port. Make sure you use a completely separate Glitch project for Lavalink. Also please remember to limit the memory usage. That's all I'm telling you :)

Setup example

const Discord = require('discord.js');
const bot = new Discord.Client();
bot.music = new (require('discord.js-lavalink-musicbot'))(bot, {
	lavalink: {
		"restnode": {
			"host": "localhost",
			"port": 8643,
			"password":"youshallnotpass"
		},
		"nodes": [
			{ "host": "localhost", "port": 8643, "region": "asia", "password": "youshallnotpass" }
		]
	},
	admins: ["455346525716086795"]
});

bot.login('bot token here');

Options

| Option | Type | Required? | Description | Default | --- | --- | --- | --- | --- | | prefix | String | no | Shows what you want your bot to respond to. | ! | | helpCmd | String | no | What should the help command be. | mhelp | | playCmd | String | no | What should the play command be. | play | | pauseCmd | String | no | What should the pause command be. | pause | | stopCmd | String | no | What should the stop command be. | stop | | queueCmd | String | no | What should the queue command be. | queue | | npCmd | String | no | What should the Now Playing command be. | np | | skipCmd | String | no | What should the skip command be. | skip | | volumeCmd | String | no | What should the volume command be. | volume | | resumeCmd | String | no | What should the resume command be. | resume | | loopCmd | String | no | What should the loop command be. | loop | | admins | String[] | no | Who are the admins? | [] | | customGame | PresenceData | no | Set the custom game! | { name: '', type: 'PLAYING' } | | lavalink | LavalinkOptions | yes, if you changed the default Lavalink settings | Lavalink settings! | (Check in the example) |

Changelog (only for v0.0.7 and later)

v0.1.0

  • Added typings file.
  • Migrated from discord.js-lavalink to Lavacord
  • Added .gitignore and .npmignore
  • Modified the README
  • Cleared a lot of the commented code because that used a lot of space

v0.0.9

  • Fixed queue being undefined in execQueue (wow I never noticed that, thanks Discord server!)
  • Added loop and seek command.
  • Updated all dependencies.
  • Reconfigure for better connecting if host doesn't give port. (example: localhost:8538 -> 154.76.225.18/lavalink.djsl-host.com) by adding an address config. You're welcome.
  • Updated literally everything to run better. Hopefully.

v0.0.8

  • Switched from snekfetch to axios
  • Reconfigured the module to no longer require a token to use.
  • Added discord.js v12 support (presumably)

v0.0.7

  • Added volume command
  • Fixed skip command (Probably)
  • Reconfigured the module for the latest version of Lavalink