Somethings wrong, idk

Btw token is reset so its fine
No description
No description
53 Replies
d.js toolkit
d.js toolkit2mo ago
- 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 OP
monbrey
monbrey2mo ago
Youre probably just in the wrong folder
vissual_s
vissual_s2mo ago
idk what u mean by that i created the bot today theres no way i would be in the wrong folder
monbrey
monbrey2mo ago
Well, Node is telling you theres no index.js in that folder C:\Users\flrnl\OneDrive\Desktop\LoopPing\index.js not found
vissual_s
vissual_s2mo ago
heres my thing right here
No description
monbrey
monbrey2mo ago
That is in /src/index.js So yeah, wrong folder/path
vissual_s
vissual_s2mo ago
{
"name": "loopping",
"version": "1.0.0",
"description": "",
"main": "/src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"discord.js": "^14.15.2"
}
}
{
"name": "loopping",
"version": "1.0.0",
"description": "",
"main": "/src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"discord.js": "^14.15.2"
}
}
so is this right?
Anthony
Anthony2mo ago
yes try now
vissual_s
vissual_s2mo ago
i did nodemon and nothing worked
Anthony
Anthony2mo ago
try
vissual_s
vissual_s2mo ago
nothing popped up
Anthony
Anthony2mo ago
"node ."
vissual_s
vissual_s2mo ago
wait maube it6s glitched
monbrey
monbrey2mo ago
Why would anything pop up? You havent told anything to
vissual_s
vissual_s2mo ago
no when i did nodemon nothing popped up
Anthony
Anthony2mo ago
like bot didnt go online?
monbrey
monbrey2mo ago
Yeah, why would anything pop up Your code does not log anything
vissual_s
vissual_s2mo ago
same errir *error
vissual_s
vissual_s2mo ago
No description
monbrey
monbrey2mo ago
That is still the wrong path
vissual_s
vissual_s2mo ago
{
"name": "loopping",
"version": "1.0.0",
"description": "",
"main": "/src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"discord.js": "^14.15.2"
}
}
{
"name": "loopping",
"version": "1.0.0",
"description": "",
"main": "/src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"discord.js": "^14.15.2"
}
}
Anthony
Anthony2mo ago
No description
vissual_s
vissual_s2mo ago
how?
Anthony
Anthony2mo ago
No description
monbrey
monbrey2mo ago
Read it, please
vissual_s
vissual_s2mo ago
the file is named LoopPing
Anthony
Anthony2mo ago
no
vissual_s
vissual_s2mo ago
No description
monbrey
monbrey2mo ago
As you can see from reading your error message, the /src directory is still missing from the path
vissual_s
vissual_s2mo ago
do i have to put nodemon index.js or nodemon /src/index.js dont go here to talk about it
monbrey
monbrey2mo ago
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
vissual_s
vissual_s2mo ago
ok
vissual_s
vissual_s2mo ago
did that and still didnt work
No description
vissual_s
vissual_s2mo ago
should i use a different tutorial?
monbrey
monbrey2mo ago
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
vissual_s
vissual_s2mo ago
{
"name": "loopping",
"version": "1.0.0",
"description": "",
"main": "/src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"discord.js": "^14.15.2"
}
}
{
"name": "loopping",
"version": "1.0.0",
"description": "",
"main": "/src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"discord.js": "^14.15.2"
}
}
is the /src/index.js i changed it
monbrey
monbrey2mo ago
This is your package.json
vissual_s
vissual_s2mo ago
yes
monbrey
monbrey2mo ago
Okay great. Did you save that file? It should probaby be ./src/index.js
vissual_s
vissual_s2mo ago
yes alright it worked, let me make sure its online nvm bot isnt online
vissual_s
vissual_s2mo ago
No description
monbrey
monbrey2mo ago
Your index.js isnt saved
vissual_s
vissual_s2mo ago
how do i save it
monbrey
monbrey2mo ago
Are you fucking kidding me
vissual_s
vissual_s2mo ago
nope i when to file and saved the file
monbrey
monbrey2mo ago
I can see from the dot next to the filename in the tab that it contains unsaved changes
vissual_s
vissual_s2mo ago
i just went to file and clicked save all
vissual_s
vissual_s2mo ago
No description
monbrey
monbrey2mo ago
Okay
vissual_s
vissual_s2mo ago
do i need to change '' to "" oh waity
monbrey
monbrey2mo ago
You need to put a valid token in between either ' or "
vissual_s
vissual_s2mo ago
i forgot i resetd it oh yay! the bot is online @ʎǝɹquoɯ thank you so much for providing me support
monbrey
monbrey2mo ago
no worries