From a3e20501af8f1913f564137f2224bb83cfc53b88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 25 Nov 2023 20:08:01 -0600 Subject: [PATCH] feat: new credits transfer --- docs/guide/creators.md | 6 ++++++ src/commands/about.ts | 2 ++ src/commands/credits.ts | 15 --------------- src/events/interactionCreate/index.ts | 2 -- 4 files changed, 8 insertions(+), 17 deletions(-) create mode 100644 docs/guide/creators.md delete mode 100644 src/commands/credits.ts diff --git a/docs/guide/creators.md b/docs/guide/creators.md new file mode 100644 index 000000000..663fb39ab --- /dev/null +++ b/docs/guide/creators.md @@ -0,0 +1,6 @@ +# Creators + +- TrèsAbhi `@tresabhi` + - Creator & main programmer; _I do it all!_ +- Prince_NA `@prince_na` + - Advisor & tester diff --git a/src/commands/about.ts b/src/commands/about.ts index 63fbc6aa0..94b60fbf0 100644 --- a/src/commands/about.ts +++ b/src/commands/about.ts @@ -11,6 +11,7 @@ const DOCS = { introduction: 'guide/introduction', invite: 'guide/invite', timezones: 'guide/timezones', + creators: 'guide/creators', }; const DOC_DESCRIPTIONS: Record = { permissions: 'The permissions needed for the bot to function', @@ -18,6 +19,7 @@ const DOC_DESCRIPTIONS: Record = { introduction: 'About the bot', invite: 'How to invite the bot', timezones: 'How Blitzkrieg infers and uses your timezone', + creators: 'Who created the bot', }; function addDocsSubcommands(option: SlashCommandSubcommandsOnlyBuilder) { diff --git a/src/commands/credits.ts b/src/commands/credits.ts deleted file mode 100644 index 9cbe952d1..000000000 --- a/src/commands/credits.ts +++ /dev/null @@ -1,15 +0,0 @@ -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 6dedea8b9..0b7aeadcb 100644 --- a/src/events/interactionCreate/index.ts +++ b/src/events/interactionCreate/index.ts @@ -16,7 +16,6 @@ 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'; @@ -102,7 +101,6 @@ export const COMMANDS_RAW: CommandRegistry[] = [ evolutionCommand, statsCommand, ratingsCommand, - creditsCommand, ]; export const commands = Promise.all(COMMANDS_RAW).then((rawCommands) =>