Shuffle and Nobody Name Commands

This commit is contained in:
Daniel Odendahl Jr
2017-08-15 22:11:22 +00:00
parent 7cbdab46b1
commit d70e642760
4 changed files with 67 additions and 2 deletions
+26
View File
@@ -0,0 +1,26 @@
const Command = require('../../structures/Command');
const { shuffle } = require('../../structrues/Util');
module.exports = class ShuffleCommand extends Command {
constructor(client) {
super(client, {
name: 'shuffle',
group: 'text-edit',
memberName: 'shuffle',
description: 'Shuffles text.',
args: [
{
key: 'text',
prompt: 'What text would you like to shuffle?',
type: 'string'
}
]
});
}
run(msg, args) {
const { text } = args;
const converted = shuffle(text.split('')).join('');
return msg.say(`\u180E${converted}`);
}
};