Permalink
Browse files

Fixed a bug with randomonium.

  • Loading branch information...
roncli committed Jul 10, 2016
1 parent 8806eb8 commit 172345e7f16464c751eb6e53532f58b963af9f73
Showing with 13 additions and 6 deletions.
  1. +5 −0 README.md
  2. +1 −1 package.json
  3. +7 −5 sixgaming.js
View
@@ -89,6 +89,11 @@ The following should be the contents of settings.js:
Version History
===============
1.1.2 - 7/9/2016
----------------
* Fixed a bug with the `!randomonium` command.
1.1.1 - 6/29/2016
-----------------
View
@@ -1,6 +1,6 @@
{
"name": "SixBotGG",
"version": "1.1.1",
"version": "1.1.2",
"description": "A Twitch IRC bot for Six Gaming.",
"homepage": "https://github.com/roncli/SixBotGG",
"bugs": {
View
@@ -1191,11 +1191,13 @@ SixGaming.discordMessages = {
});
for (index = 0; index < user.voiceChannel.members.length; index++) {
SixGaming.discordQueue(user.voiceChannel.members[index] + ": " + owHeroes[index]);
if (message === "dupe" || message === "dupes") {
owHeroes.sort(function() {
return Math.random() - 0.5;
});
if (user.voiceChannel && user.voiceChannel.members[index].voiceChannel && user.voiceChannel.id === user.voiceChannel.members[index].voiceChannel.id && user.voiceChannel.members[index] && userChannels[user.voiceChannel.members[index].id] && userChannels[user.voiceChannel.members[index].id] === user.voiceChannel.id) {
SixGaming.discordQueue(user.voiceChannel.members[index] + ": " + owHeroes[index]);
if (message === "dupe" || message === "dupes") {
owHeroes.sort(function() {
return Math.random() - 0.5;
});
}
}
}
},

0 comments on commit 172345e

Please sign in to comment.