forked from Supositware/Haha-Yes
actually its existSync
This commit is contained in:
parent
f6318d274a
commit
658bcaf1f8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue