Files
xiao/commands/textedit/repeat.js
T
Daniel Odendahl Jr 0a1bc41b26 Repeat Command
2017-05-06 20:56:50 +00:00

26 lines
763 B
JavaScript

const { Command } = require('discord.js-commando');
module.exports = class RepeatCommand extends Command {
constructor(client) {
super(client, {
name: 'repeat',
group: 'textedit',
memberName: 'repeat',
description: 'Repeat something 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',
parse: text => text.repeat(2000).substr(0, 1999)
}
]
});
}
run(msg, args) {
const { text } = args;
return msg.say(`\u180E${text}`);
}
};