From 8121f3bb6d7c3259ae13ca5f85f7f7b495118058 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Wed, 2 Jul 2025 14:29:18 -0700 Subject: [PATCH] feat: only assign participation in Maribelle's threads --- src/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f73b833..6dd9474 100644 --- a/src/index.ts +++ b/src/index.ts @@ -38,7 +38,8 @@ client.on(Events.ClientReady, () => { }); }); -client.on(Events.MessageCreate, (message) => { +// eslint-disable-next-line @typescript-eslint/no-misused-promises -- sod off this is going away next month. +client.on(Events.MessageCreate, async(message) => { if (!message.channel.isThread() || !message.inGuild()) { return; } @@ -54,6 +55,11 @@ client.on(Events.MessageCreate, (message) => { if (message.author.bot) { return; } + const threadOwner = await message.channel.fetchOwner(); + // Check if thread owner is Maribelle (to indicate it is progress thread) + if (threadOwner?.id !== "1386862413936328796") { + return; + } if (!activeIds.includes(message.author.id)) { activeIds.push(message.author.id); }