aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-09 00:25:43 +0000
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-09 00:25:43 +0000
commit51228472c7b724b23457a4d958f3bf66566492cc (patch)
treee9108dda974d1d4b4a382ce626aa4612927c214f /src/commands/config
parentf729877226acd7d903eaa99343a187ab1375b25b (diff)
downloadtanzanite-51228472c7b724b23457a4d958f3bf66566492cc.tar.gz
tanzanite-51228472c7b724b23457a4d958f3bf66566492cc.tar.bz2
tanzanite-51228472c7b724b23457a4d958f3bf66566492cc.zip
some wip leveling stuff I did when I was bored at school
Diffstat (limited to 'src/commands/config')
-rw-r--r--src/commands/config/levelRoles.ts122
1 files changed, 63 insertions, 59 deletions
diff --git a/src/commands/config/levelRoles.ts b/src/commands/config/levelRoles.ts
index f947d85..36dc50c 100644
--- a/src/commands/config/levelRoles.ts
+++ b/src/commands/config/levelRoles.ts
@@ -1,61 +1,65 @@
-// import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
+import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
-// export default class LevelRolesCommand extends BushCommand {
-// public constructor() {
-// super('levelRole', {
-// aliases: ['level-role', 'level-roles', 'lr'],
-// category: 'config',
-// description: {
-// content: 'Command description.',
-// usage: 'level-role <role> <level>',
-// examples: ['level-role 1 2']
-// },
-// args: [
-// {
-// id: 'role',
-// type: 'role',
-// prompt: {
-// start: 'What would you like to set your first argument to be?',
-// retry: '{error} Pick a valid argument.',
-// optional: false
-// }
-// },
-// {
-// id: 'level',
-// type: 'integer',
-// prompt: {
-// start: 'What would you like to set your second argument to be?',
-// retry: '{error} Pick a valid argument.',
-// optional: false
-// }
-// }
-// ],
-// slash: true,
-// slashOptions: [
-// {
-// name: 'role',
-// description: 'What would you like to set your first argument to be?',
-// type: 'STRING',
-// required: true
-// },
-// {
-// name: 'level',
-// description: 'What would you like to set your second argument to be?',
-// type: 'STRING',
-// required: true
-// }
-// ],
-// channel: 'guild',
-// clientPermissions: ['SEND_MESSAGES'],
-// userPermissions: ['SEND_MESSAGES', 'MANAGE_GUILD', 'MANAGE_ROLES']
-// });
-// }
+export default class LevelRolesCommand extends BushCommand {
+ public constructor() {
+ super('levelRole', {
+ aliases: ['level-role', 'level-roles', 'lr'],
+ category: 'config',
+ description: {
+ content: 'Configure roles to be assigned to users upon reaching certain levels.',
+ usage: ['level-role add <level> <role>', 'level-role remove <level>'],
+ examples: ['level-role 1 2']
+ },
+ args: [
+ {
+ id: 'action',
+ customType: ['add', 'remove']
+ },
+ {
+ id: 'role',
+ type: 'role',
+ prompt: {
+ start: 'What would you like to set your first argument to be?',
+ retry: '{error} Pick a valid argument.',
+ optional: false
+ }
+ },
+ {
+ id: 'level',
+ type: 'integer',
+ prompt: {
+ start: 'What would you like to set your second argument to be?',
+ retry: '{error} Pick a valid argument.',
+ optional: false
+ }
+ }
+ ],
+ slash: true,
+ slashOptions: [
+ {
+ name: 'role',
+ description: 'What would you like to set your first argument to be?',
+ type: 'STRING',
+ required: true
+ },
+ {
+ name: 'level',
+ description: 'What would you like to set your second argument to be?',
+ type: 'STRING',
+ required: true
+ }
+ ],
+ channel: 'guild',
+ clientPermissions: ['SEND_MESSAGES'],
+ userPermissions: ['SEND_MESSAGES', 'MANAGE_GUILD', 'MANAGE_ROLES']
+ });
+ }
-// public override async exec(
-// message: BushMessage | BushSlashMessage,
-// args: { required_argument: string; optional_argument: string }
-// ): Promise<unknown> {
-// return await message.util.reply(`${util.emojis.error} Do not use the template command.`);
-// args;
-// }
-// }
+ public override async exec(
+ message: BushMessage | BushSlashMessage,
+ args: { required_argument: string; optional_argument: string }
+ ): Promise<unknown> {
+ return await message.util.reply(`${util.emojis.error} Do not use the template command.`);
+ args;
+ }
+}