Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

New music, new you.

Compare
Choose a tag to compare
@DarkoPendragon DarkoPendragon released this 15 Oct 02:18
· 174 commits to master since this release

1.4.0

Yeah, I put a cringy title for this version. Deal with it.
The 1.4 update completely changes the way the bot plays and search's for music.


New Notable Items


  • New music/searching.
  • Fixed ytdl related issues.
  • Now requires a YouTube API3 key to be passed to the bot (see new code below).
  • Added errors to ensure the bot has the right info at startup so it doesn't crash afterwards.

Code Change


New code is required for the module. See below.

const Discord = require('discord.js');
const client = new Discord.Client();
const Music = require('discord.js-musicbot-addon'); //note: capital M.

const music = new Music(client, { //note: lowercase m.
  youtubeKey: 'sum-youtube-api3-keyhere'
}); //add any other options you want, youtubeKey is required however.
client.login('secret-token');