mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 21:00:03 +00:00
Update blocklist.js
This commit is contained in:
parent
4b0e188467
commit
20301a620d
@ -12,7 +12,7 @@ const readBlocklist = () => {
|
||||
} catch (error) {
|
||||
if (error.code === 'ENOENT') {
|
||||
console.log('WARN: Blocklist file not found. Creating a new one.');
|
||||
fs.writeFileSync(blocklistPath, ''); // Create an empty blocklist file
|
||||
fs.writeFileSync(blocklistPath, '');
|
||||
} else {
|
||||
console.error('WARN: Error reading blocklist:', error);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user