mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
27 lines
638 B
JavaScript
27 lines
638 B
JavaScript
const Command = require('../../framework/Command');
|
|
|
|
module.exports = class SpoilerLetterCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'spoiler-letter',
|
|
aliases: ['spoiler'],
|
|
group: 'edit-text',
|
|
description: 'Sends text with each and every character as an individual spoiler.',
|
|
args: [
|
|
{
|
|
key: 'text',
|
|
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('||||')}||`);
|
|
}
|
|
};
|