mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
29 lines
725 B
JavaScript
29 lines
725 B
JavaScript
const Command = require('../../structures/Command');
|
|
|
|
module.exports = class RepeatCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'repeat',
|
|
group: 'text-edit',
|
|
memberName: 'repeat',
|
|
description: 'Repeat text over and over and over and over (etc).',
|
|
args: [
|
|
{
|
|
key: 'text',
|
|
prompt: 'What text would you like to repeat over and over and over and over?',
|
|
type: 'string',
|
|
validate: text => {
|
|
if (!text.includes('@everyone') && !text.includes('@here')) return true;
|
|
return 'Please do not repeat everyone or here mentions.';
|
|
}
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, args) {
|
|
const { text } = args;
|
|
return msg.say(text.repeat(2000).substr(0, 2000));
|
|
}
|
|
};
|