actually its existSync

This commit is contained in:
loicbersier 2019-07-29 23:36:21 +02:00
parent f6318d274a
commit 658bcaf1f8

View file

@ -49,7 +49,7 @@ class nolightCommand extends Command {
});
async function apng() {
if (fs.readFileSync('./img/nolight.png')) {
if (fs.existsSync('./img/nolight.png')) {
fs.unlink('./img/nolight.png', (err) => {
if (err) throw err;
});