mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 11:21:16 +02:00
String Changes, Don't register tons of defaults
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user