aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush/neuRepo.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-07-14 09:01:43 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-07-14 09:01:43 -0400
commit7cec4037ead3287c1d88db4274824b21d9d57d51 (patch)
tree4a7e6a7a7ab2a4291d72d848b25df22d28c31675 /src/commands/moulberry-bush/neuRepo.ts
parentbddeb83bc0641a059a08c5887e6585c759c3b643 (diff)
downloadtanzanite-7cec4037ead3287c1d88db4274824b21d9d57d51.tar.gz
tanzanite-7cec4037ead3287c1d88db4274824b21d9d57d51.tar.bz2
tanzanite-7cec4037ead3287c1d88db4274824b21d9d57d51.zip
messing around with repo stuff
Diffstat (limited to 'src/commands/moulberry-bush/neuRepo.ts')
-rw-r--r--src/commands/moulberry-bush/neuRepo.ts47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/commands/moulberry-bush/neuRepo.ts b/src/commands/moulberry-bush/neuRepo.ts
new file mode 100644
index 0000000..24f83ad
--- /dev/null
+++ b/src/commands/moulberry-bush/neuRepo.ts
@@ -0,0 +1,47 @@
+import { BushCommand, clientSendAndPermCheck, type ArgType, type CommandMessage, type SlashMessage } from '#lib';
+import { ApplicationCommandOptionType, AutocompleteInteraction, CacheType, PermissionFlagsBits } from 'discord.js';
+
+export default class NeuRepoCommand extends BushCommand {
+ public static items: { name: string; id: string }[] = [];
+
+ public constructor() {
+ super('neuRepo', {
+ aliases: ['neu-repo', 'repo-item', 'neu-item', 'item-repo'],
+ category: "Moulberry's Bush",
+ description: 'Get information about an item from the NEU item repo.',
+ usage: ['neu-repo <item>'],
+ examples: ['neu-repo BARRIER'],
+ args: [
+ {
+ id: 'item',
+ description: 'The item id that you would like to find neu item information about.',
+ type: 'string',
+ prompt: 'What SkyBlock item would you like to get information about?',
+ retry: '{error} Pick a valid SkyBlock item ID. Try using the slash command for a better experience.',
+ slashType: ApplicationCommandOptionType.String,
+ autocomplete: true
+ }
+ /* {
+ id: 'dangerous',
+ description: 'Whether or not to use the dangerous branch.',
+ prompt: 'Would you like to use the dangerous branch instead of the master branch?',
+ match: 'flag',
+ flag: ['--dangerous', '-d'],
+ default: false,
+ optional: true,
+ slashType: ApplicationCommandOptionType.Boolean
+ } */
+ ],
+ slash: true,
+ clientPermissions: (m) => clientSendAndPermCheck(m, [PermissionFlagsBits.EmbedLinks], true),
+ userPermissions: []
+ });
+ }
+
+ public override async exec(
+ message: CommandMessage | SlashMessage,
+ args: { item: ArgType<'string'> /* dangerous: ArgType<'flag'> */ }
+ ) {}
+
+ public override async autocomplete(interaction: AutocompleteInteraction<CacheType>) {}
+}