stuyy / slappey

Discord Bot Project Generator
219 stars 50 forks source link

How do i host it #42

Open MauKings opened 3 years ago

MauKings commented 3 years ago

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:

YajTPG commented 3 years ago

Change the const config = require('../slappey.json'); to const config = require('./slappey.json'); in index.js (Remove a dot)

loveisglitchy commented 3 years ago

@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.