From d7c7814b3ad1d8bd9e3255e7f9fd0db349f82ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Mon, 13 Nov 2023 22:19:49 -0600 Subject: [PATCH] feat: credits command --- src/commands/credits.ts | 15 +++++++++++++++ src/events/interactionCreate/index.ts | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 src/commands/credits.ts diff --git a/src/commands/credits.ts b/src/commands/credits.ts new file mode 100644 index 000000000..f7f87f0cf --- /dev/null +++ b/src/commands/credits.ts @@ -0,0 +1,15 @@ +import { AttachmentBuilder, SlashCommandBuilder } from 'discord.js'; +import { CommandRegistry } from '../events/interactionCreate'; + +export const creditsCommand: CommandRegistry = { + inProduction: true, + inPublic: true, + + command: new SlashCommandBuilder() + .setName('credits') + .setDescription('Me and the people who made this bot!'), + + async handler() { + return new AttachmentBuilder('https://i.imgur.com/ZF5ch33.png'); + }, +}; diff --git a/src/events/interactionCreate/index.ts b/src/events/interactionCreate/index.ts index 7a41cc454..e181dfdec 100644 --- a/src/events/interactionCreate/index.ts +++ b/src/events/interactionCreate/index.ts @@ -16,6 +16,7 @@ import { import discord from '../../../discord.json' assert { type: 'json' }; import { aboutCommand } from '../../commands/about'; import { breakdownCommand } from '../../commands/breakdown'; +import { creditsCommand } from '../../commands/credits'; import { debugCommand } from '../../commands/debug'; import { eligibleCommand } from '../../commands/eligible'; import { evolutionCommand } from '../../commands/evolution'; @@ -103,6 +104,7 @@ export const COMMANDS_RAW: CommandRegistry[] = [ statsCommand, ratingsCommand, todayCommand, + creditsCommand, ]; export const commands = Promise.all(COMMANDS_RAW).then((rawCommands) =>