From 54405800272f4cdf17f2ced88eb38630617b7d78 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 19 May 2017 13:43:56 +0000 Subject: [PATCH] Move Settings to their own group --- commands/{util => settings}/clearsetting.js | 2 +- commands/{util => settings}/inviteguard.js | 2 +- commands/{util => settings}/memberchannel.js | 2 +- commands/{util => settings}/membermsg.js | 2 +- commands/{util => settings}/modchannel.js | 2 +- commands/{util => settings}/singlerole.js | 2 +- commands/{util => settings}/staffrole.js | 2 +- index.js | 1 + 8 files changed, 8 insertions(+), 7 deletions(-) rename commands/{util => settings}/clearsetting.js (97%) rename commands/{util => settings}/inviteguard.js (95%) rename commands/{util => settings}/memberchannel.js (96%) rename commands/{util => settings}/membermsg.js (98%) rename commands/{util => settings}/modchannel.js (96%) rename commands/{util => settings}/singlerole.js (96%) rename commands/{util => settings}/staffrole.js (96%) diff --git a/commands/util/clearsetting.js b/commands/settings/clearsetting.js similarity index 97% rename from commands/util/clearsetting.js rename to commands/settings/clearsetting.js index 9ea35e22..1be40b73 100644 --- a/commands/util/clearsetting.js +++ b/commands/settings/clearsetting.js @@ -4,7 +4,7 @@ module.exports = class ClearSettingCommand extends Command { constructor(client) { super(client, { name: 'clear-setting', - group: 'util', + group: 'settings', memberName: 'clear-setting', description: 'Removes a custom-set Guard Mode, Mod Channel, Member Channel, Member Message, Staff Role, or Single Role.', guildOnly: true, diff --git a/commands/util/inviteguard.js b/commands/settings/inviteguard.js similarity index 95% rename from commands/util/inviteguard.js rename to commands/settings/inviteguard.js index 4afadf92..a43c91f3 100644 --- a/commands/util/inviteguard.js +++ b/commands/settings/inviteguard.js @@ -5,7 +5,7 @@ module.exports = class GuardCommand extends Command { super(client, { name: 'invite-guard', aliases: ['guard'], - group: 'util', + group: 'settings', memberName: 'invite-guard', description: 'Configures auto-delete for invites.', guildOnly: true diff --git a/commands/util/memberchannel.js b/commands/settings/memberchannel.js similarity index 96% rename from commands/util/memberchannel.js rename to commands/settings/memberchannel.js index a15fb1cd..40fb0a0b 100644 --- a/commands/util/memberchannel.js +++ b/commands/settings/memberchannel.js @@ -4,7 +4,7 @@ module.exports = class MemberLogCommand extends Command { constructor(client) { super(client, { name: 'member-channel', - group: 'util', + group: 'settings', memberName: 'member-channel', description: 'Sets the channel for the member logs to be sent.', guildOnly: true, diff --git a/commands/util/membermsg.js b/commands/settings/membermsg.js similarity index 98% rename from commands/util/membermsg.js rename to commands/settings/membermsg.js index 2c8154ed..4e4b071e 100644 --- a/commands/util/membermsg.js +++ b/commands/settings/membermsg.js @@ -5,7 +5,7 @@ module.exports = class MemberMsgCommand extends Command { super(client, { name: 'member-message', aliases: ['member-msg'], - group: 'util', + group: 'settings', memberName: 'member-message', description: 'Sets the message for either join/leave logs to use.', details: '**Placeholders:** : Username, : Server Name, : A Mention of the User', diff --git a/commands/util/modchannel.js b/commands/settings/modchannel.js similarity index 96% rename from commands/util/modchannel.js rename to commands/settings/modchannel.js index b1bc5c61..5714cb9e 100644 --- a/commands/util/modchannel.js +++ b/commands/settings/modchannel.js @@ -4,7 +4,7 @@ module.exports = class ModChannelCommand extends Command { constructor(client) { super(client, { name: 'mod-channel', - group: 'util', + group: 'settings', memberName: 'mod-channel', description: 'Sets the channel for the mod logs to be sent.', guildOnly: true, diff --git a/commands/util/singlerole.js b/commands/settings/singlerole.js similarity index 96% rename from commands/util/singlerole.js rename to commands/settings/singlerole.js index e8d4a27f..d96e5c39 100644 --- a/commands/util/singlerole.js +++ b/commands/settings/singlerole.js @@ -4,7 +4,7 @@ module.exports = class SingleRoleCommand extends Command { constructor(client) { super(client, { name: 'single-role', - group: 'util', + group: 'settings', memberName: 'single-role', description: 'Sets a single role that is able to use commands.', guildOnly: true, diff --git a/commands/util/staffrole.js b/commands/settings/staffrole.js similarity index 96% rename from commands/util/staffrole.js rename to commands/settings/staffrole.js index 5a0a479e..db69d3f6 100644 --- a/commands/util/staffrole.js +++ b/commands/settings/staffrole.js @@ -4,7 +4,7 @@ module.exports = class StaffRoleCommand extends Command { constructor(client) { super(client, { name: 'staff-role', - group: 'util', + group: 'settings', memberName: 'staff-role', description: 'Sets the role that can use Mod Commands without perms.', guildOnly: true, diff --git a/index.js b/index.js index cd2bb95c..19768eac 100644 --- a/index.js +++ b/index.js @@ -29,6 +29,7 @@ client.registry ['userinfo', 'User Info'], ['guildinfo', 'Server Info'], ['moderation', 'Moderation'], + ['settings', 'Server Settings'], ['response', 'Random Response'], ['randomimg', 'Random Image'], ['avataredit', 'Avatar Manipulation'],