actually its existSync

This commit is contained in:
loicbersier 2019-07-29 23:36:21 +02:00
parent ce09c7ce09
commit f943ac1c01

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;
});