ItsRauf/discord-datamine-bot

[BUG] failure to save channel to json

Opened this issue · 0 comments

it seems that running the bot with pm2 causes fs to not find the file based on the base directory pm2 provides

writeFileSync("./src/datamine.json", JSON.stringify(datamine, null, 2));