Files
xiao/commands/edit-text/shuffle.js
T
2024-05-21 21:02:12 -04:00

23 lines
431 B
JavaScript

const Command = require('../../framework/Command');
const { shuffle } = require('../../util/Util');
module.exports = class ShuffleCommand extends Command {
constructor(client) {
super(client, {
name: 'shuffle',
group: 'edit-text',
description: 'Shuffles text.',
args: [
{
key: 'text',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(shuffle(text.split('')).join(''));
}
};