mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
30 lines
724 B
JavaScript
30 lines
724 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',
|
|
max: 1950,
|
|
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:390141884070363138>`);
|
|
}
|
|
};
|
|
|