diff --git a/flake.nix b/flake.nix index 2e18daa..9514a64 100644 --- a/flake.nix +++ b/flake.nix @@ -64,6 +64,10 @@ discord = lib.mkOption { type = lib.types.str; }; + mentionUser = lib.mkOption { + type = lib.types.bool; + default = true; + }; }; }; config = lib.mkIf config.services.wanireminder.enable { diff --git a/index.js b/index.js index 7123ca8..06da6fc 100644 --- a/index.js +++ b/index.js @@ -21,6 +21,9 @@ for (let user of config.users) { content: message, username: "WaniKani Reminder", avatarURL: "https://pbs.twimg.com/profile_images/1213575248911552512/WP11ESTy_400x400.jpg", + allowedMentions: { + parse: user.mentionUser ? ["users"] : [], + } }) } }