feat: credits command

This commit is contained in:
TrèsAbhi committed 2023-11-13 22:19:49 -06:00
1 parent 15bf02f829
commit d7c7814b3a
2 files changed
+17

No files matched your search

+15
View File
@@ -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');
},
};
+2
View File
@@ -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) =>