Somethings wrong, idk

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