diff --git a/index.js b/index.js index 7cdda46..19b9f8b 100644 --- a/index.js +++ b/index.js @@ -183,6 +183,7 @@ const sendMessages = async (data) => { fs.readdirSync(process.env.CONFIG_PATH).forEach(file => { + if (file.startsWith(".")) return; // Ignore hidden files contents = fs.readFileSync(path.join(process.env.CONFIG_PATH, file)).toString() switch (file) { case "IpBans.txt": @@ -199,6 +200,7 @@ fs.readdirSync(process.env.CONFIG_PATH).forEach(file => { const watchFiles = () => { fs.watch(process.env.CONFIG_PATH, (event, file) => { + if (file.startsWith(".")) return; // Ignore hidden files setTimeout(() => { tmp = {} newContents = fs.readFileSync(path.join(process.env.CONFIG_PATH, file)).toString()