BOT PROBLEM
I was going to create my bot by watching a video, that is, I was going to set up the bot, but I saw that video and did everything. Node did it first, but it didn't work for me. When I type node index.js, it crashes. When I use nodemon, I get this error:
It works with index.js. Also, when the bot is opened, it should write a message to the terminal and the message seen in a chat should be written to the terminal. I made the code from the video and it didn't work. I didn't make any mistakes. Everything is correct. Please help me to develop my bot properly:(
16 Replies
There is no
index.js
file in the ~/Desktop/N.E.X.U.S
folderIt could also be because your desktop is synced with onedrive.
Had plenty of issues where onedrive would sync the files with onedrive and only keep the references local.
If you are sure you have an index.js, try moving your project to a place that's not synced with onedrive
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
That sounds like an entirely unrelated skill issue, please stay on topic
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
why is this staff so toxic sometimes 😭🙏
the second you say something that's not perfect they act like they're superior humans
That's also well off topic
and true 😔😔
LOL
ur tuff
😭🙏
blud timed me out
- aura
This. @Mr.Omega - Also consider removing the periods from your dir name like (T.H.I.S) so it's (THIS) instead.
No index.js in NEXUS file
I checked a thousand times
It was in the node module file
oh i guess that's the problem
ohh ı will test
though to elaborate, there will be many files named
index.js
throughout node_modules
you'll want your own or to update the main
in your package.json
There are still problems, I put that file in that file in vsc
I will delete the file and ı will do it again
The thread owner has marked this issue as solved.