From 5e9de56c7e117811f8dba16fb671b65469688144 Mon Sep 17 00:00:00 2001 From: Aidan Date: Mon, 30 Jun 2025 02:04:17 -0400 Subject: [PATCH] add new functions --- spamwatch.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spamwatch.ts b/spamwatch.ts index 050b006..ec7a054 100644 --- a/spamwatch.ts +++ b/spamwatch.ts @@ -23,6 +23,10 @@ const isOnSpamWatch = (userId: string) => { return blocklist.includes(userId); }; +const isSpamwatchConnected = () => blocklist.length > 0; + +const getSpamwatchBlockedCount = () => blocklist.length; + readBlocklist(); -export { isOnSpamWatch }; +export { isOnSpamWatch, isSpamwatchConnected, getSpamwatchBlockedCount };