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 };