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