add new functions

This commit is contained in:
Aidan 2025-06-30 02:04:17 -04:00
parent cee30dc642
commit 5e9de56c7e

View file

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