From 7737c12a959c3929af2dc7cd7c3f435345e216ab Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Tue, 11 Feb 2020 21:35:45 +0200 Subject: [PATCH] forgot the console.logs :) --- commands/search.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/commands/search.js b/commands/search.js index 96062080..2d168ac7 100644 --- a/commands/search.js +++ b/commands/search.js @@ -29,7 +29,6 @@ module.exports = { return msg.channel.send('<:redx:674263474704220182> I cannot speak in your voice channel, make sure I have the proper permissions!'); } if (url.match(/^https?:\/\/(www.youtube.com|youtube.com)\/playlist(.*)$/)) { - console.log('link') const lmsg = await msg.channel.send(' Loading song(s)'); const playlist = await youtube.getPlaylist(url); const videos = await playlist.getVideos(); @@ -40,7 +39,6 @@ module.exports = { return lmsg.edit(`<:green_check_mark:674265384777416705> Playlist: **${playlist.title}** has been added to the queue!`); } else { try { - console.log('searching videos') var video = await youtube.getVideo(url); } catch (error) { try { @@ -53,7 +51,6 @@ module.exports = { .setColor(client.config.embedColor) msg.channel.send(embed); try { - console.log('waiting response') var response = await msg.channel.awaitMessages(message2 => message2.content > 0 && message2.content < 11 && message2.author === msg.author, { max: 1, time: 10000, @@ -63,7 +60,6 @@ module.exports = { console.error(err); return msg.channel.send('<:redx:674263474704220182> Cancelling video selection'); } - console.log('getting video') const videoIndex = parseInt(response.first().content); var video = await youtube.getVideoByID(videos[videoIndex - 1].id); } catch (err) { @@ -71,7 +67,6 @@ module.exports = { return msg.channel.send('<:redx:674263474704220182> I could not obtain any search results!'); } } - console.log('handlevideo') return client.funcs.handleVideo(video, msg, voiceChannel, client, false); } }