String Changes, Don't register tons of defaults

This commit is contained in:
Daniel Odendahl Jr
2017-04-05 17:27:31 +00:00
parent f380a3ecbd
commit 332016ca5d
75 changed files with 225 additions and 265 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
const commando = require('discord.js-commando');
String.prototype.shuffle = function() {
let a = this.split(""),
let a = this.split(''),
n = a.length;
for (let i = n - 1; i > 0; i--) {
let j = Math.floor(Math.random() * (i + 1));
@@ -9,7 +9,7 @@ String.prototype.shuffle = function() {
a[i] = a[j];
a[j] = tmp;
}
return a.join("");
return a.join('');
};
module.exports = class ShuffleCommand extends commando.Command {