Minor changes

This commit is contained in:
Daniel Odendahl Jr
2017-09-07 17:07:45 +00:00
parent edd3dad9d5
commit 8959581614
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -14,8 +14,8 @@ module.exports = class BCommand extends Command {
prompt: 'What text would you like to :b:?',
type: 'string',
validate: text => {
if (text.replace(/(b|d|e|f|g|p|q)/gi, ':b:').length < 2000) return true;
return 'Your text is too long';
if (text.replace(/(b|d|g|p|q)/gi, ':b:').length < 2000) return true;
return 'Your text is too long.';
}
}
]
@@ -24,6 +24,6 @@ module.exports = class BCommand extends Command {
run(msg, args) {
const { text } = args;
return msg.say(text.replace(/(b|d|e|f|g|p|q)/gi, ':b:'));
return msg.say(text.replace(/(b|d|g|p|q)/gi, ':b:'));
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "37.4.0",
"version": "37.4.1",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {