Skip to content

Commit

Permalink
❌ Removed old imageedit options
Browse files Browse the repository at this point in the history
  • Loading branch information
wiki-Bird committed Jun 11, 2024
1 parent bea02e8 commit 7d43844
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/commands/imgedit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7d43844

Please sign in to comment.