Somethings wrong, idk

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