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); }; /**