And do that

This commit is contained in:
Daniel Odendahl Jr
2017-05-04 02:45:46 +00:00
parent cf87f126d6
commit 40d29e2297
4 changed files with 4 additions and 8 deletions
+1 -2
View File
@@ -24,9 +24,8 @@ module.exports = class BanCommand extends Command {
prompt: 'What do you want to set the reason as?',
type: 'string',
validate: reason => {
if(reason.length < 140) {
if(reason.length < 140)
return true;
}
return `Please keep your reason under 140 characters, you have ${reason.length}.`;
}
}
+1 -2
View File
@@ -21,9 +21,8 @@ module.exports = class KickCommand extends Command {
prompt: 'What do you want to set the reason as?',
type: 'string',
validate: reason => {
if(reason.length < 140) {
if(reason.length < 140)
return true;
}
return `Please keep your reason under 140 characters, you have ${reason.length}.`;
}
}
+1 -2
View File
@@ -21,9 +21,8 @@ module.exports = class SoftbanCommand extends Command {
prompt: 'What do you want to set the reason as?',
type: 'string',
validate: reason => {
if(reason.length < 140) {
if(reason.length < 140)
return true;
}
return `Please keep your reason under 140 characters, you have ${reason.length}.`;
}
}
+1 -2
View File
@@ -14,9 +14,8 @@ module.exports = class ZalgoCommand extends Command {
prompt: 'What text would you like to convert to zalgo?',
type: 'string',
validate: text => {
if(text.length < 500) {
if(text.length < 500)
return true;
}
return `Please keep your text under 500 characters, you have ${text.length}.`;
},
parse: text => zalgo(text)