Just some updates

This commit is contained in:
Daniel Odendahl Jr
2017-10-20 21:00:08 +00:00
parent bac7e3e6b8
commit 15d5ff0be1
25 changed files with 48 additions and 146 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ module.exports = class BCommand extends Command {
prompt: 'What text would you like to 🅱?',
type: 'string',
validate: text => {
if (text.replace(/(b|d|g|p|q)/gi, '🅱').length < 2000) return true;
if (text.replace(/b/gi, '🅱').length < 2000) return true;
return 'Invalid text, your text is too long.';
}
}
@@ -23,6 +23,6 @@ module.exports = class BCommand extends Command {
}
run(msg, { text }) {
return msg.say(text.replace(/(b|d|g|p|q)/gi, '🅱'));
return msg.say(text.replace(/b/gi, '🅱'));
}
};