mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
23 lines
431 B
JavaScript
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(''));
|
|
}
|
|
};
|