DEV Community

Discussion on: Creating An Announcement Discord Bot

Collapse
 
shadowtime2000 profile image
shadowtime2000

You need NodeJS. You can run the bot with

$ node index.js
Enter fullscreen mode Exit fullscreen mode
Collapse
 
elcorporation1 profile image
E.L. Corporation

Where should I run that? Every time I get the same error.

C:\Users\leoth>node LeOS\index.js
node:internal/modules/cjs/loader:903
throw err;
^

Error: Cannot find module 'C:\Users\leoth\LeOS\index.js'
←[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:900:15)←[39m
←[90m at Function.Module._load (node:internal/modules/cjs/loader:745:27)←[39m
←[90m at Function.executeUserEntryPoint as runMain←[39m
←[90m at node:internal/main/run_main_module:17:47←[39m {
code: ←[32m'MODULE_NOT_FOUND'←[39m,
requireStack: []
}

Thread Thread
 
shadowtime2000 profile image
shadowtime2000

You should be inside the folder that you put the code in.