Skip to content

Commit

Permalink
AAAAAAAAAAAAAAAAAAAAAAA
Browse files Browse the repository at this point in the history
  • Loading branch information
meqativ authored Nov 11, 2024
1 parent 2edca7e commit 8873752
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/code/jolly.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@
let lastattachment = `{lastattachment}`;
let avatarURL = `{get:avatar}`;{ignore:
let emojiURL; emojiURL = (emojiURL=args[0].match(/<(a?):\w+:(\d+)>/), emojiURL ? `https://cdn.discordapp.com/emojis/${emojiURL[2]}.png?size=512&quality=lossless` : undefined)
let imageURL = message?.attachments?.[0]?.url
|| message?.embeds?.[0]?.image?.url
|| message?.referenced_message?.attachments?.[0]?.url
|| message?.referenced_message?.embeds?.[0]?.image?.url
|| emojiURL;
let imageURL =
message?.attachments?.[0]
? message.attachments[0].url
: message?.embeds?.[0]?.image
? message.embeds[0].image.url
: message?.referenced_message?.attachments?.[0]
? message.referenced_message.attachments[0].url
: message?.referenced_message?.embeds?.[0]?.image
? message.referenced_message.embeds[0].image.url
: emojiURL;


if (avatarURL) imageURL = avatarURL.replace("?size=1024", "?size=512");
(async()=>{
Expand Down

0 comments on commit 8873752

Please sign in to comment.