actually its existSync

merge-requests/4/head
loicbersier 5 years ago
parent ce09c7ce09
commit f943ac1c01

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

Loading…
Cancel
Save