Skip to content

Commit 1c681cc

Browse files
committed
Ignore everything except new messages
1 parent f580ce1 commit 1c681cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/server.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ app.command("/addcategory", async ({ command, ack, respond }) => {
5454
});
5555

5656
app.event("message", async ({ event, client }) => {
57-
// Check if the message is a reply (i.e., it has a thread_ts field)
58-
if (event.thread_ts || event.bot_id) {
59-
// Ignore replies
57+
// Check if the message is a new message
58+
if (event.subtype) {
59+
// Ignore everything except new messages
6060
return;
6161
}
6262

0 commit comments

Comments
 (0)