mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
33 lines
858 B
JavaScript
33 lines
858 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
|
|
module.exports = class MockingCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'mocking',
|
|
aliases: ['mock'],
|
|
group: 'text-edit',
|
|
memberName: 'mocking',
|
|
description: 'SenDs TexT lIkE ThiS.',
|
|
clientPermissions: ['USE_EXTERNAL_EMOJIS'],
|
|
args: [
|
|
{
|
|
key: 'text',
|
|
prompt: 'WHaT tEXt WoUlD yOu LiKE to COnvErt?',
|
|
type: 'string',
|
|
validate: text => {
|
|
if (text.length < 1950) return true;
|
|
return 'Invalid text, please keep the text under 1950 characters.';
|
|
},
|
|
parse: text => text.toLowerCase().split('')
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, { text }) {
|
|
for (let i = 0; i < text.length; i += Math.floor(Math.random() * 4)) text[i] = text[i].toUpperCase();
|
|
return msg.say(`${text.join('')} <:sponge:318612443398144000>`);
|
|
}
|
|
};
|
|
|