Update to latest

This commit is contained in:
Daniel Odendahl Jr
2017-11-02 22:42:12 +00:00
parent 96c762a552
commit 7560246f26
37 changed files with 89 additions and 120 deletions
+1 -4
View File
@@ -23,10 +23,7 @@ module.exports = class BanCommand extends Command {
key: 'reason',
prompt: 'What do you want to set the reason as?',
type: 'string',
validate: reason => {
if (reason.length < 140) return true;
return 'Invalid reason, please keep the reason under 140 characters.';
}
max: 140
}
]
});
+6 -5
View File
@@ -16,16 +16,17 @@ module.exports = class HackbanCommand extends Command {
{
key: 'id',
prompt: 'What is the id of the member you want to hackban?',
type: 'string'
type: 'string',
validate: id => {
if (/^[0-9]+$/.test(id)) return true;
return 'Invalid ID.';
}
},
{
key: 'reason',
prompt: 'What do you want to set the reason as?',
type: 'string',
validate: reason => {
if (reason.length < 140) return true;
return 'Invalid reason, please keep the reason under 140 characters.';
}
max: 140
}
]
});
+1 -4
View File
@@ -23,10 +23,7 @@ module.exports = class KickCommand extends Command {
key: 'reason',
prompt: 'What do you want to set the reason as?',
type: 'string',
validate: reason => {
if (reason.length < 140) return true;
return 'Invalid reason, please keep the reason under 140 characters.';
}
max: 140
}
]
});
+2 -4
View File
@@ -21,10 +21,8 @@ module.exports = class PruneCommand extends Command {
label: 'amount of messages',
prompt: 'How many messages do you want to delete? Limit of up to 99.',
type: 'integer',
validate: count => {
if (count < 100 && count > 0) return true;
return 'Invalid count, please enter a number from 1-99.';
}
min: 1,
max: 99
}
]
});
+1 -4
View File
@@ -23,10 +23,7 @@ module.exports = class SoftbanCommand extends Command {
key: 'reason',
prompt: 'What do you want to set the reason as?',
type: 'string',
validate: reason => {
if (reason.length < 140) return true;
return 'Invalid reason, please keep the reason under 140 characters.';
}
max: 140
}
]
});
+6 -5
View File
@@ -16,16 +16,17 @@ module.exports = class UnbanCommand extends Command {
{
key: 'id',
prompt: 'What is the id of the member you want to unban?',
type: 'string'
type: 'string',
validate: id => {
if (/^[0-9]+$/.test(id)) return true;
return 'Invalid ID.';
}
},
{
key: 'reason',
prompt: 'What do you want to set the reason as?',
type: 'string',
validate: reason => {
if (reason.length < 140) return true;
return 'Invalid reason, please keep the reason under 140 characters.';
}
max: 140
}
]
});