Skip to content

Commit

Permalink
✨ Fixed 1984 imgedit
Browse files Browse the repository at this point in the history
  • Loading branch information
wiki-Bird committed Mar 27, 2024
1 parent d495026 commit 7410a3d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Binary file modified images/1984.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/puter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions src/commands/imgedit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ const imgedit: Command = {
{ name: "SuperPoint", value:"superpoint"},
{ name: "Invert", value: "invert" },
{ name: "1984", value: "1984" },
{ name: "Cpoint", value: "cpoint"},
{ name: "blank", value: "blank"}
{ name: "Puter", value: "puter"},
{ name: "blank", value: "blank"},
{ name: "Cpoint", value: "cpoint"}
)
)
.addStringOption(option =>
Expand Down Expand Up @@ -129,6 +130,11 @@ const imgedit: Command = {
const superpoint = await loadImage("https://raw.githubusercontent.com/wiki-Bird/meowd/main/images/superTFpoint.png");
ctx.drawImage(superpoint, 0, 0, 1024, 1024);
}
else if (action === "puter") {
const puter = await loadImage("/images/puter.png");
ctx.drawImage(puter, 0, 0, 1024, 1024);

}
else if (action === "cpoint") {
const serverWhitelist = ["1034219118276120586", "521856622998323202", "945166361519353877"];
if (serverWhitelist.indexOf(interaction.guild.id) === -1) {
Expand All @@ -152,10 +158,10 @@ const imgedit: Command = {
ctx.putImageData(imgData, 0, 0);
}
else if (action === "1984") {
ctx.drawImage(img, 20, 0, 1000, 800);
// ctx.drawImage(img, 20, 0, 1000, 800);
// drag https://i.imgur.com/00mhtBU.png over it
const img2 = await loadImage("https://raw.githubusercontent.com/wiki-Bird/meowd/main/images/1984.png");
ctx.drawImage(img2, 0, 0, 1024, 1024);
const nineEightFour = await loadImage("https://raw.githubusercontent.com/wiki-Bird/meowd/main/images/1984.png");
ctx.drawImage(nineEightFour, 0, 0, 1024, 1024);
}
else if (action === "blank") {
// do nothing, just return the image
Expand Down

0 comments on commit 7410a3d

Please sign in to comment.