Answer the question
In order to leave comments, you need to log in
I am writing a discord bot in the visual code studio, I want to run the bot and write it, what should I do?
I write the code, run the bot and write:
Error: Cannot find module 'C:\Users\Dmitry\Desktop\Night BOT\bor.js'
←[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js: 962:15)←[39m
←[90m at Function.Module._load (internal/modules/cjs/loader.js:838:27)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/ run_main.js:71:12)←[39m
←[90m at internal/main/run_main_module.js:17:47←[39m {
code: ←[32m'MODULE_NOT_FOUND'←[39m,
requireStack: []
There is a file in the folder bot.js what to do
Answer the question
In order to leave comments, you need to log in
He can't find bor.js
. Rename to bot.js. Apparently there is a typo in the code itself when specifying the path to the file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question