Update spamwatch.js
This commit is contained in:
parent
8d35b7ec4c
commit
bb6ead9e5c
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
const blocklistPath = path.join(__dirname, '../../props/sw_blocklist.txt');
|
const blocklistPath = path.join(__dirname, 'sw_blocklist.txt') || path.join(__dirname, '../../props/sw_blocklist.txt');
|
||||||
|
|
||||||
let blocklist = [];
|
let blocklist = [];
|
||||||
|
|
||||||
|
@ -25,4 +25,4 @@ const isOnSpamWatch = (userId) => {
|
||||||
|
|
||||||
readBlocklist();
|
readBlocklist();
|
||||||
|
|
||||||
module.exports = { isOnSpamWatch };
|
module.exports = { isOnSpamWatch };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue