From 1eab3e7853730581222c657103d6d166bb510552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Gro=C3=9F?= Date: Mon, 18 Sep 2023 12:38:35 +0200 Subject: [PATCH] Commands: remove legacy debugrendering command --- commands/debugRendering.js | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 commands/debugRendering.js diff --git a/commands/debugRendering.js b/commands/debugRendering.js deleted file mode 100644 index 9e61255..0000000 --- a/commands/debugRendering.js +++ /dev/null @@ -1,32 +0,0 @@ -const sharp = require('sharp'); -const { SlashCommandBuilder, AttachmentBuilder, EmbedBuilder } = require('discord.js'); -module.exports = { - data: new SlashCommandBuilder() - .setName("debugrendering") - .setDescription("Debug rendering"), - permissionLevel: 2, - async execute(interaction) { - - const image = await sharp({ - create: { - width: 900, - height: 500, - channels: 4, - background: { r: 255, g: 0, b: 0, alpha: 0.5 } - } - }) - .composite([ - { input: './assets/cards/test/test.png', gravity: 'northwest' }, - { input: './assets/cards/test/test.png', gravity: 'centre' }, - { input: './assets/cards/test/test.png', gravity: 'northeast' }, - { input: './assets/overlays/rainbow_overlay.png', gravity: 'northwest' }, - { input: './assets/overlays/rainbow_overlay.png', gravity: 'centre' }, - { input: './assets/overlays/rainbow_overlay.png', gravity: 'northeast' }, - ]) - .png() - .toBuffer(); - - const file = new AttachmentBuilder(image); - const message = await interaction.reply({ content: 'asd', files: [file], fetchReply: true }); - } -} \ No newline at end of file