Skip to content

Commit

Permalink
don't fix own embeds to prevent double posting
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Dec 5, 2024
1 parent c3460b6 commit 77b5d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/discord/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class DiscordBot extends Service {
}

async fixEmbeds(msg: Discord.Message): Promise<void> {
if (!this.ready || msg.id === lastMessageId) return;
if (!this.ready || msg.id === lastMessageId || msg.author.id === msg.client.user.id) return;

if (!ImgurRegex.test(msg.content)) return;

Expand Down

0 comments on commit 77b5d6e

Please sign in to comment.