diff --git a/src/commands/misc/node.ts b/src/commands/misc/node.ts new file mode 100644 index 0000000..b5df5b6 --- /dev/null +++ b/src/commands/misc/node.ts @@ -0,0 +1,18 @@ +import { SlashCommandBuilder, CommandInteraction, AttachmentBuilder } from 'discord.js'; +import { Command } from '../../interfaces/command'; +import path from 'path'; + +const NodeImage: Command = { + data: new SlashCommandBuilder() + .setName('node') + .setDescription('Gottfried loves node.'), + + async run(interaction: CommandInteraction) { + const imagePath = path.join(__dirname, '../../data/imgs/node.png'); + const imageAttachment = new AttachmentBuilder(imagePath); + + await interaction.reply({ files: [imageAttachment] }); + }, +}; + +export default NodeImage; diff --git a/src/data/imgs/node.png b/src/data/imgs/node.png new file mode 100644 index 0000000..a8471fc Binary files /dev/null and b/src/data/imgs/node.png differ