Skip to content

Commit

Permalink
Delete duplicate join messages
Browse files Browse the repository at this point in the history
  • Loading branch information
encode42 committed May 5, 2024
1 parent 8910d3f commit a0d569a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/discord/events/fixWelcomes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ client.on(Events.MessageCreate, (message) => {
log.debug(`Join message for member ${message.author.displayName} detected.`);

if (isDuplicate(message.author.username)) {
log.debug("Is a duplicate!");
log.debug("..which is a duplicate!");
message.delete();
}

updateLast(message.author.username);
Expand Down

0 comments on commit a0d569a

Please sign in to comment.