BOT PROBLEM

I was going to create my bot by watching a video, that is, I was going to set up the bot, but I saw that video and did everything. Node did it first, but it didn't work for me. When I type node index.js, it crashes. When I use nodemon, I get this error:
 [nodemon] 3.1.10
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node index.js`
node:internal/modules/cjs/loader:1247
throw err;
^

Error: Cannot find module 'C:\Users\kadir6848\OneDrive\Desktop\N.E.X.U.S\index.js'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1244:15)
    at Function._load (node:internal/modules/cjs/loader:1070:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.13.1
[nodemon] app crashed - waiting for file changes before starting... 

It works with index.js. Also, when the bot is opened, it should write a message to the terminal and the message seen in a chat should be written to the terminal. I made the code from the video and it didn't work. I didn't make any mistakes. Everything is correct. Please help me to develop my bot properly:(
Was this page helpful?