SHE CNA FUCKIGN SING AGAIN

This commit is contained in:
Emily 2021-03-18 13:02:59 +11:00
parent 1feb88451c
commit 479eeeea44
3 changed files with 3 additions and 13 deletions

View file

@ -12,7 +12,7 @@
"discord-paginator.js": "github:mudkipscience/discord-paginator.js",
"discord.js": "^12.5.1",
"enmap": "^5.8.4",
"ffmpeg-static": "^4.2.7",
"ffmpeg-static": "^4.2.8",
"hastebin-gen": "^2.0.5",
"moment": "^2.29.1",
"moment-duration-format": "^2.3.2",

View file

@ -54,8 +54,6 @@ exports.getVideoByQuery = async function (client, query, message) {
return message.channel.send('<:error:466995152976871434> An error has occured: ' + e)
})
console.log(parsed)
if (parsed) {
const videos = parsed
if (videos) {
@ -196,15 +194,7 @@ exports.play = async function (client, message, query, playNext, ignoreQueue) {
const v = guild.queue[0]
try {
let y = null;
/*setTimeout(() => {
if(y == null) {
console.log('[MUSIC DEBUG] y is still null');
};
}, 5000);*/
y = await ytdl(exports.getLinkFromID(v.video.videoId) || v.video.videoId, { highWaterMark: 1024 * 1024 * 32 });
guild.dispatcher = connection.play(y, { type: 'opus' });
guild.dispatcher = connection.play(ytdl(v.video.videoId, { type: 'opus', bitrate: 'auto' }));
} catch (err) {
if (playNext && playNext === true) {
guild.queue.splice(1, 1)

View file

@ -1,4 +1,4 @@
{
"number": "1.4.1",
"number": "1.4.2",
"changelog": "**1.4 Changelog**\n> • Splatoon commands have been added! check current and upcoming maps and modes with `~splatoonmaps`, current and upcoming salmon run maps, weapons and reward gear with `~salmonrun` and see what gear is on offer in the splatnet shop with `~splatnet`!\n**Notes:**\n> • Music is still broken and likely will be until v2 is released. Fixing v1 would delay v2 a lot, sorry >.<"
}