aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-30 16:48:07 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-30 16:48:07 -0400
commit42d2e2bf01b5debd4ecf605297f925ad5da7deb3 (patch)
treedaf6678542cd8735f9930086f7a1e76ae6884e4e /src/commands/config
parent4ad90b19851a0853287c45d326a28be535b1607f (diff)
downloadtanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.tar.gz
tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.tar.bz2
tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.zip
I did this 2 weeks ago idk what I did
Diffstat (limited to 'src/commands/config')
-rw-r--r--src/commands/config/customAutomodPhrases.ts64
-rw-r--r--src/commands/config/levelRoles.ts61
2 files changed, 125 insertions, 0 deletions
diff --git a/src/commands/config/customAutomodPhrases.ts b/src/commands/config/customAutomodPhrases.ts
new file mode 100644
index 0000000..7735939
--- /dev/null
+++ b/src/commands/config/customAutomodPhrases.ts
@@ -0,0 +1,64 @@
+// import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
+
+// export default class CustomAutomodPhrasesCommand extends BushCommand {
+// public constructor() {
+// super('customAutomodPhrases', {
+// aliases: ['customautomodphrases'],
+// category: 'config',
+// description: {
+// content: 'Configure additional phrases to be used for automod.',
+// usage: 'customautomodphrases <requiredArg> [optionalArg]',
+// examples: ['template 1 2']
+// },
+// args: [
+// {
+// id: 'required_argument',
+// type: 'string',
+// prompt: {
+// start: 'What would you like to set your first argument to be?',
+// retry: '{error} Pick a valid argument.',
+// optional: false
+// }
+// },
+// {
+// id: 'optional_argument',
+// type: 'string',
+// prompt: {
+// start: 'What would you like to set your second argument to be?',
+// retry: '{error} Pick a valid argument.',
+// optional: true
+// }
+// }
+// ],
+// slash: false, //set this to true
+// slashOptions: [
+// {
+// name: 'required_argument',
+// description: 'What would you like to set your first argument to be?',
+// type: 'STRING',
+// required: true
+// },
+// {
+// name: 'optional_argument',
+// description: 'What would you like to set your second argument to be?',
+// type: 'STRING',
+// required: false
+// }
+// ],
+// superUserOnly: true,
+// ownerOnly: true,
+// channel: 'guild',
+// hidden: true,
+// clientPermissions: ['SEND_MESSAGES'],
+// userPermissions: ['SEND_MESSAGES']
+// });
+// }
+
+// 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;
+// }
+// }
diff --git a/src/commands/config/levelRoles.ts b/src/commands/config/levelRoles.ts
new file mode 100644
index 0000000..df63914
--- /dev/null
+++ b/src/commands/config/levelRoles.ts
@@ -0,0 +1,61 @@
+import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
+
+export default class LevelRolesCommand extends BushCommand {
+ public constructor() {
+ super('levelRole', {
+ aliases: ['levelrole', 'levelroles', 'lr'],
+ category: 'config',
+ description: {
+ content: 'Command description.',
+ usage: 'levelrole <role> <level>',
+ examples: ['levelrole 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']
+ });
+ }
+
+ 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;
+ }
+}