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-music-addon

v12.0.6

Published

A configurable music bot for Discord.js using YouTube! Add it to an already made bot, or run it by itself.

Downloads

11

Readme

npm package

This was originally an update of the original bot from ruiqimao by nexu-dev, but is now a updated version (again) for Discord.js's version 11.2^. Fixes deprecated warnings, video playback issues, along with various other add-ons and tweaks to the priors. This module may be buggy and need some fine tuning. Feel free to let me know what problems you encounter by opening an issue on the repo or joining the Discord server, where I or a @Helper will help you.

Docs, installation, and so on:

Basic Example.


This addon is easy to use, and doesn't require any extra configuration besides a YouTube Data API key to run.
More examples can be found on the repo or once downloaded in examples.

Example basic code, standalone:

const Discord = require('discord.js');
const Music = require('discord.js-musicbot-addon');
const client = new Discord.Client();

Music.start(client, {
  youtubeKey: 'sum-key_hhereas'
});

client.login("token");

Changelog


12.0.6

  • Updated the README.md file, like I should have.
  • Added some more exports. I think.
  • Added docs to the repo.

12.0.5

  • Forgot to map the join command. Did that.

12.0.4

  • Added a join command, and related options.
  • Added anyoneCanJoin.
  • Fixed console.error in the startup function.
  • To save space, be it small, examples are no longer downloaded with npm.

12.0.3

  • Added some easy-exports incase you want to change up some shit. Will be listed above.
  • Changed some console logging to make sure it logs as an error, not just data.
  • Fixed searchHelp (used to be searcHelp... Yeah).

12.0.2

  • Redid some parts of the executeQueue function.
  • Redid a tiny bit of the play, leave functions.
  • Redid the entire isQueueEmpty function.
  • Lived another day.

12.0.1

  • Fixed a Promise format error in checkQueues.
  • Fixed index.min.js.

12.0.0

  • ownerOverMember now overrides canAdjust.
  • Re-worked queue system and related functions.
  • verifyQueue changed to isQueueEmpty.
  • Made a real update.
  • Removed the owner command.
  • Fixed aliases.
  • Added an index.min.js file to the repo for people wanting to squeeze size.
  • Added clearOnLeave.
  • The bot will no longer clear the queue on leave unless clearOnLeave is true.
  • Baked chocolate for my girlfriend.
  • Added checkQueues. Use only if needed.
  • Cleared browser history for the past week. #nekoparaForLife.

11.0.3 & Lower

  • ~deprecated versions~