aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/config')
-rw-r--r--src/commands/config/features.ts29
-rw-r--r--src/commands/config/settings.ts25
2 files changed, 40 insertions, 14 deletions
diff --git a/src/commands/config/features.ts b/src/commands/config/features.ts
new file mode 100644
index 0000000..0547bd0
--- /dev/null
+++ b/src/commands/config/features.ts
@@ -0,0 +1,29 @@
+// import { BushCommand, BushMessage, BushSlashMessage, guildFeatures } from '@lib';
+// import { MessageEmbed } from 'discord.js';
+
+// export default class FeaturesCommand extends BushCommand {
+// public constructor() {
+// super('features', {
+// aliases: ['features'],
+// category: 'config',
+// description: {
+// content: 'Toggle features the server.',
+// usage: 'features',
+// examples: ['features']
+// },
+// slash: true,
+// channel: 'guild',
+// clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
+// userPermissions: ['SEND_MESSAGES', 'MANAGE_GUILD']
+// });
+// }
+// public override async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
+// if (!message.guild) return await message.util.reply(`${util.emojis.error} This command can only be used in servers.`);
+// const featureEmbed = new MessageEmbed().setTitle(`${message.guild.name}'s Features`).setColor(util.colors.default);
+// const featureList: string[] = [];
+// const enabledFeatures = message.guild.getSetting('enabledFeatures');
+// guildFeatures.forEach(feature => {
+// featureList.push(`${}`)
+// })
+// }
+// }
diff --git a/src/commands/config/settings.ts b/src/commands/config/settings.ts
index f474804..0b71629 100644
--- a/src/commands/config/settings.ts
+++ b/src/commands/config/settings.ts
@@ -1,28 +1,28 @@
-// import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
+// import { BushCommand, BushMessage, BushSlashMessage, guildSettings } from '@lib';
// export default class SettingsCommand extends BushCommand {
// public constructor() {
// super('settings', {
-// aliases: ['settings'],
+// aliases: ['settings', 'settings', 'configure', 'config'],
// category: 'config',
// description: {
-// content: 'Configure options for ',
-// usage: 'template <requiredArg> [optionalArg]',
+// content: 'Configure server options. Hint this is easier to use with the slash command.',
+// usage: 'config <\'add\'|\'remove\'|\'toggle\'> <setting>',
// examples: ['template 1 2']
// },
// args: [
// {
-// id: 'required_argument',
-// type: 'string',
+// id: 'action',
+// customType: ['add', 'remove', 'toggle'],
// prompt: {
-// start: 'What would you like to set your first argument to be?',
-// retry: '{error} Pick a valid argument.',
+// start: 'What action would you like to perform, it can be `add`, `remove`, or `toggle`.',
+// retry: '{error} Choose a either `add`, `remove`, or `toggle`.',
// optional: false
// }
// },
// {
-// id: 'optional_argument',
-// type: 'string',
+// id: 'setting',
+// customType: Object.keys(guildSettings),
// prompt: {
// start: 'What would you like to set your second argument to be?',
// retry: '{error} Pick a valid argument.',
@@ -30,7 +30,7 @@
// }
// }
// ],
-// slash: false, //set this to true
+// slash: true,
// slashOptions: [
// {
// name: 'required_argument',
@@ -45,10 +45,7 @@
// required: false
// }
// ],
-// superUserOnly: true,
-// ownerOnly: true,
// channel: 'guild',
-// hidden: true,
// clientPermissions: ['SEND_MESSAGES'],
// userPermissions: ['SEND_MESSAGES']
// });