- shuffling doesn't delete the queue anymore
pull/6/head
Trivernis 6 years ago
parent afd41f58f9
commit 4e3e992e04

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

Loading…
Cancel
Save