Python blocklist generator + modified .gitignore + WARN string on spamwatch.js

Signed-off-by: lucmsilva651 <lucmsilva651@gmail.com>
This commit is contained in:
lucmsilva651 2024-08-31 21:20:49 -03:00
parent 8fe6dce44d
commit f0efeb63c4
No known key found for this signature in database
GPG key ID: D9B075FC6DC93985
5 changed files with 22 additions and 1 deletions

View file

@ -11,7 +11,7 @@ const readBlocklist = () => {
blocklist = data.split('\n').map(id => id.trim()).filter(id => id !== '');
} catch (error) {
if (error.code === 'ENOENT') {
console.log('WARN: SpamWatch blocklist file not found. Creating a new (blank) one.\nUse your API key to push the blocklist to the file.');
console.log('WARN: SpamWatch blocklist file not found. Creating a new, blank one.\nUse your own SpamWatch API key and our generator to push the blocklist to the file.');
fs.writeFileSync(blocklistPath, '');
} else {
console.error('WARN: Error reading SpamWatch blocklist:', error);