This commit is contained in:
Dragon Fire
2020-10-24 14:25:32 -04:00
parent 40080cadef
commit ebd26a7b0e
25 changed files with 42 additions and 44 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ module.exports = class ClapCommand extends Command {
prompt: 'What 👏 text 👏 would 👏 you 👏 like 👏 to 👏 convert?',
type: 'string',
validate: text => {
if (text.replace(/ /g, ' 👏 ').length < 2000) return true;
if (text.replaceAll(' ', ' 👏 ').length < 2000) return true;
return 'Invalid text, your text is too long.';
}
}
@@ -23,6 +23,6 @@ module.exports = class ClapCommand extends Command {
}
run(msg, { text }) {
return msg.say(text.replace(/ /g, ' 👏 '));
return msg.say(text.replaceAll(' ', ' 👏 '));
}
};