From 7d43844322ce5a3db0f1c474e6dbc4a713998062 Mon Sep 17 00:00:00 2001 From: wiki-Bird <41028518+wiki-Bird@users.noreply.github.com> Date: Tue, 11 Jun 2024 22:26:33 +1200 Subject: [PATCH] =?UTF-8?q?=E2=9D=8C=20Removed=20old=20imageedit=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/imgedit.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/commands/imgedit.ts b/src/commands/imgedit.ts index c97b65c..3c79a28 100644 --- a/src/commands/imgedit.ts +++ b/src/commands/imgedit.ts @@ -19,8 +19,7 @@ const imgedit: Command = { { name: "Invert", value: "invert" }, { name: "1984", value: "1984" }, { name: "Puter", value: "puter"}, - { name: "blank", value: "blank"}, - { name: "Cpoint", value: "cpoint"} + { name: "blank", value: "blank"} ) ) .addStringOption(option => @@ -136,16 +135,6 @@ const imgedit: Command = { ctx.drawImage(puter, 0, 0, 1024, 1024); } - else if (action === "cpoint") { - const serverWhitelist = ["1034219118276120586", "521856622998323202", "945166361519353877"]; - if (serverWhitelist.indexOf(interaction.guild.id) === -1) { - interaction.editReply({ content: "This image is server restricted and cannot be used here, sorry." }); - return; - } - - const cpoint = await loadImage("https://raw.githubusercontent.com/wiki-Bird/meowd/main/images/Csoy.png"); - ctx.drawImage(cpoint, 0, 0, 1024, 1024); - } else if (action === "invert") { const imgData = ctx.getImageData(0, 0, 1024, 1024); const data = imgData.data;