Cleaner Looking args

This commit is contained in:
Daniel Odendahl Jr
2017-05-02 17:54:07 +00:00
parent 57ee7fa82b
commit 3bb21c2df0
83 changed files with 787 additions and 616 deletions
+11 -9
View File
@@ -8,16 +8,18 @@ module.exports = class ClearSettingCommand extends Command {
memberName: 'clearsetting',
description: 'Removes a custom-set Mod Channel, Member Channel, or Staff Role.',
guildOnly: true,
args: [{
key: 'setting',
prompt: 'What setting do you want to clear? `modLog`, `memberLog`, or `staffRole`?',
type: 'string',
validate: setting => {
if (['modLog', 'memberLog', 'staffRole'].includes(setting))
return true;
return 'Please enter either `modLog`, `memberLog`, or `staffRole`.';
args: [
{
key: 'setting',
prompt: 'What setting do you want to clear? `modLog`, `memberLog`, or `staffRole`?',
type: 'string',
validate: setting => {
if (['modLog', 'memberLog', 'staffRole'].includes(setting))
return true;
return 'Please enter either `modLog`, `memberLog`, or `staffRole`.';
}
}
}]
]
});
}
+7 -5
View File
@@ -8,11 +8,13 @@ module.exports = class MemberLogCommand extends Command {
memberName: 'memberchannel',
description: 'Sets the channel for the member logs to be sent.',
guildOnly: true,
args: [{
key: 'channel',
prompt: 'What is the channel you want to send logs to?',
type: 'channel'
}]
args: [
{
key: 'channel',
prompt: 'What is the channel you want to send logs to?',
type: 'channel'
}
]
});
}
+7 -5
View File
@@ -8,11 +8,13 @@ module.exports = class ModChannelCommand extends Command {
memberName: 'modchannel',
description: 'Sets the channel for the mod logs to be sent.',
guildOnly: true,
args: [{
key: 'channel',
prompt: 'What is the channel you want to send logs to?',
type: 'channel'
}]
args: [
{
key: 'channel',
prompt: 'What is the channel you want to send logs to?',
type: 'channel'
}
]
});
}
+7 -6
View File
@@ -1,6 +1,5 @@
const { Command } = require('discord.js-commando');
const { RichEmbed } = require('discord.js');
const { version } = require('../../package');
const moment = require('moment');
require('moment-duration-format');
@@ -14,11 +13,13 @@ module.exports = class ShardInfoCommand extends Command {
group: 'util',
memberName: 'shardinfo',
description: 'Gives some bot info for the Shard you specify.',
args: [{
key: 'shard',
prompt: 'Which Shard would you like to get data for?',
type: 'integer'
}]
args: [
{
key: 'shard',
prompt: 'Which Shard would you like to get data for?',
type: 'integer'
}
]
});
}
+7 -5
View File
@@ -8,11 +8,13 @@ module.exports = class StaffRoleCommand extends Command {
memberName: 'staffrole',
description: 'Sets the role that can use Mod Commands without perms.',
guildOnly: true,
args: [{
key: 'role',
prompt: 'What role should be staff?',
type: 'role'
}]
args: [
{
key: 'role',
prompt: 'What role should be staff?',
type: 'role'
}
]
});
}