From f9d800be37b672c3320e9f9a89f8736aad484b35 Mon Sep 17 00:00:00 2001 From: Aubrey Taylor Date: Thu, 30 Jan 2025 16:37:36 -0600 Subject: [PATCH] support threads --- flake.nix | 3 +++ index.js | 1 + 2 files changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index 9514a64..7998ae6 100644 --- a/flake.nix +++ b/flake.nix @@ -50,6 +50,9 @@ type = lib.types.str; description = "The webhook to post the messages to"; }; + threadId = lib.mkOption { + type = lib.types.str; + }; users = lib.mkOption { type = lib.types.listOf lib.types.attrs; diff --git a/index.js b/index.js index 06da6fc..aaf3251 100644 --- a/index.js +++ b/index.js @@ -19,6 +19,7 @@ for (let user of config.users) { await webhook.send({ content: message, + threadId: config.threadId, username: "WaniKani Reminder", avatarURL: "https://pbs.twimg.com/profile_images/1213575248911552512/WP11ESTy_400x400.jpg", allowedMentions: {