N
N
NightWarrior6602022-02-05 19:57:10
Bots
NightWarrior660, 2022-02-05 19:57:10

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

2 answer(s)
A
Artem Prokhorov, 2022-02-05
@NightWarrior660

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.

D
Drno, 2022-02-05
@Drno

I don’t know if it affects this situation or not, but it’s better that there are no Russian letters on the way ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question