From 4e3e992e04c4a7f116ca50ed880de24c16d5dff5 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Fri, 21 Dec 2018 16:55:24 +0100 Subject: [PATCH] Bugfix - shuffling doesn't delete the queue anymore --- lib/music.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/music.js b/lib/music.js index 53a49fa..a670582 100644 --- a/lib/music.js +++ b/lib/music.js @@ -7,8 +7,6 @@ const Discord = require("discord.js"), let logger = require('winston'); let client = null; let connections = {}; -let current = null; -let queue = []; /* Function Definition */ // TODO: initCommands function that takes the cmd.js module as variable and uses it to create commands @@ -218,7 +216,7 @@ exports.nowPlaying = function(voiceChannel, callback) { * shuffles the queue */ exports.shuffle = function(voiceChannel) { - connections[voiceChannel.guild.id].queue = shuffle(queue); + connections[voiceChannel.guild.id].queue = shuffle(connections[voiceChannel.guild.id].queue); }; /**