Files
xiao/commands/text-edit/repeat.js
T
Daniel Odendahl Jr 53e1d6a8ff eslint config aqua
2017-07-27 21:00:54 +00:00

26 lines
591 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'
}
]
});
}
run(msg, args) {
const { text } = args;
const converted = text.repeat(2000).substr(0, 1999);
return msg.say(`\u180E${converted}`);
}
};