Spoiler Letter Command

This commit is contained in:
Daniel Odendahl Jr
2019-02-20 17:24:46 +00:00
parent 71cbf63df7
commit de9be8114c
3 changed files with 31 additions and 2 deletions
+28
View File
@@ -0,0 +1,28 @@
const Command = require('../../structures/Command');
module.exports = class SpoilerLetterCommand extends Command {
constructor(client) {
super(client, {
name: 'spoiler-letter',
aliases: ['spoiler'],
group: 'text-edit',
memberName: 'spoiler-letter',
description: 'Sends text with each and every character as an individual spoiler.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert?',
type: 'string',
validate: text => {
if (`||${text.split('').join('||||')}||`.length < 2000) return true;
return 'Invalid text, your text is too long.';
}
}
]
});
}
run(msg, { text }) {
return msg.say(`||${text.split('').join('||||')}||`);
}
};