Open MauKings opened 3 years ago
Change the const config = require('../slappey.json');
to const config = require('./slappey.json');
in index.js
(Remove a dot)
@MauKings Please confirm if the first comment helped your case. The reason for the change, is a linux server (most host providers use this) read the files differently than your pc. So your files are already a folder ahead of your bot project.
Everything is working fine in my pc but when i try to host it on my hosting provider it gives me an error that cannot find index.js file but i fixed that by just moving the files from src to the root then it gives me error that cannot find slappey.json idk what to do here is the slappey.json error:
Error: Cannot find module '../slappey.json' Require stack: