Merge pull request #6 from Trivernis/develop

HOTFIX for working shuffeling
pull/7/head
Trivernis 6 years ago committed by GitHub
commit 32c2fef7b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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