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-paginator.js": "github:mudkipscience/discord-paginator.js",
"discord.js": "^12.5.1", "discord.js": "^12.5.1",
"enmap": "^5.8.4", "enmap": "^5.8.4",
"ffmpeg-static": "^4.2.7", "ffmpeg-static": "^4.2.8",
"hastebin-gen": "^2.0.5", "hastebin-gen": "^2.0.5",
"moment": "^2.29.1", "moment": "^2.29.1",
"moment-duration-format": "^2.3.2", "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) return message.channel.send('<:error:466995152976871434> An error has occured: ' + e)
}) })
console.log(parsed)
if (parsed) { if (parsed) {
const videos = parsed const videos = parsed
if (videos) { if (videos) {
@ -196,15 +194,7 @@ exports.play = async function (client, message, query, playNext, ignoreQueue) {
const v = guild.queue[0] const v = guild.queue[0]
try { try {
let y = null; guild.dispatcher = connection.play(ytdl(v.video.videoId, { type: 'opus', bitrate: 'auto' }));
/*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' });
} catch (err) { } catch (err) {
if (playNext && playNext === true) { if (playNext && playNext === true) {
guild.queue.splice(1, 1) 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 >.<" "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 >.<"
} }