53 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPYoure probably just in the wrong folder
idk what u mean by that
i created the bot today
theres no way i would be in the wrong folder
Well, Node is telling you theres no index.js in that folder
C:\Users\flrnl\OneDrive\Desktop\LoopPing\index.js
not foundheres my thing right here
That is in
/src/index.js
So yeah, wrong folder/path
so is this
right?
yes
try now
i did nodemon and nothing worked
try
nothing popped up
"node ."
wait
maube it6s glitched
Why would anything pop up?
You havent told anything to
no
when i did nodemon
nothing popped up
like bot didnt go online?
Yeah, why would anything pop up
Your code does not log anything
same errir
*error
That is still the wrong path
how?
Read it, please
the file is named LoopPing
no
As you can see from reading your error message, the
/src
directory is still missing from the pathdo i have to put nodemon index.js or nodemon /src/index.js
dont go here to talk about it
This is a thread for one persons specific issue, please go to #general or simply read the member onboarding prompts you would have been given before joining
The second one, because thats where your file is
ok
did that and still didnt work
should i use a different tutorial?
I dont know what tutorial you're using
You keep cropping useful information out of your screenshots so I cant see what youre actually doing
is the /src/index.js
i changed it
This is your package.json
yes
Okay great. Did you save that file?
It should probaby be
./src/index.js
yes
alright
it worked, let me make sure its online
nvm
bot isnt online
Your index.js isnt saved
how do i save it
Are you fucking kidding me
nope
i when to file and saved
the file
I can see from the dot next to the filename in the tab that it contains unsaved changes
i just went to file and clicked save all
Okay
do i need to change '' to ""
oh waity
You need to put a valid token in between either
'
or "
i forgot i resetd it
oh yay!
the bot is online
@ʎǝɹquoɯ thank you so much for providing me support
no worries