mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
30 lines
784 B
JavaScript
30 lines
784 B
JavaScript
const Command = require('../../structures/Command');
|
|
const { shuffle } = require('../../structures/Util');
|
|
|
|
module.exports = class OrganizationXIIINameCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'organization-xiii-name',
|
|
aliases: ['org-xiii-name', 'xiii-name', 'nobody-name'],
|
|
group: 'text-edit',
|
|
memberName: 'organization-xiii-name',
|
|
description: 'Converts a name into the Organization XIII style.',
|
|
args: [
|
|
{
|
|
key: 'text',
|
|
prompt: 'What name would you like to convert?',
|
|
type: 'string',
|
|
parse: text => text.toLowerCase().split('')
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, { text }) {
|
|
text.push('x');
|
|
const shuffled = shuffle(text);
|
|
shuffled[0] = shuffled[0].toUpperCase();
|
|
return msg.say(shuffled.join(''));
|
|
}
|
|
};
|