Ask coding questions

← Back to all posts
Main.js isn't working
NischayPatel (0)

I am making a discord bot. I have two files. My index.js is working fine. I made a main.js but that isn't working. I put the client login and everything. Can someone help?

Comments
hotnewtop
Coder100 (16791)

you must add a .replit file to tell repl to run the main.js file instead:

run = "node main"

https://docs.repl.it/repls/dot-replit