Skip to content

Commit 224bee3

Browse files
Techbot121Meta Construct
authored andcommitted
skip bot chatsounds commits
1 parent 48e0465 commit 224bee3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/services/discord/modules/webhook-handler.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ export default async (bot: DiscordBot): Promise<void> => {
504504
const payload = event.payload;
505505
const commits = payload.commits;
506506

507+
if (payload.sender?.type === "Bot") {
508+
return;
509+
}
510+
507511
if (payload.head_commit && isRemoteMergeCommit(payload.head_commit.message))
508512
commits.splice(0, commits.length, payload.head_commit);
509513

0 commit comments

Comments
 (0)