#your file doesn t exist
1 messages · Page 1 of 1 (latest)
where did you save it
Double-Triple check your reference
Your not running it in the right directory then
If still correct, then you should be able to 'CTRL+CLICK' the reference, and it'll open the file
is it supposed to be in the node directory
Your structure should be
Project Root e.g. 'myBot'
> package.json
> node_modules
> src
>> bot.js / index.js
>> commands
>> etc...
Or along those lines
then just navigate there, or just use the terminal built into your ide
or you can use something like windows terminal which adds an option open a terminal in a specific directory on right click
You can also add scripts to your package.json to alias commands whoch is quite useful, e.g. mine:
"scripts": {
"test": "node src/bot.js",
"debug": "node --inspect src/bot.js",
"deploy": "git push heroku main"
},
Tomato Tomarto, it works for me.
Just an example
nah just naming something that starts your bot "test" makes no sense
"start" and "dev" are convention
That's because it's for my dev bot.