Charbrose
Charbrose
DIAdiscord.js - Imagine a boo! 👻
Created by Charbrose on 7/16/2024 in #djs-questions
Discord bot works but not on my pcs
I have a personal discord bot I use for me and my friends. It used to work fine on my server pc but then one day it decided it didn't want to work anymore. It would join vc but then instantly leave. I then tried to run it on my main pc and it worked fine. After editing the code a little it managed to work on my server pc again. Now it doesn't work on both systems. I tried it on other systems in my house but all of them didn't work. For the fun of it, I tried it on a friends system and it worked no issue. I even tested old code which first had the issue and it worked fine. If anyone has any clue on what the problem is or what a possible solution would be I'm all ears.
5 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Charbrose on 3/22/2024 in #djs-questions
i need help fixing this error for node.js
does someone mind helping me out? i keep getting this error and get get it resolved Debugger attached. Waiting for the debugger to disconnect... node:internal/modules/cjs/loader:1147 throw err; ^ Error: Cannot find module 'dotenv' Require stack: C:\Users\sedef\Desktop\Random Downloads\VS Code\bot_test\index.js at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15) at Module._load (node:internal/modules/cjs/loader:985:27) at Module.require (node:internal/modules/cjs/loader:1235:19) at require (node:internal/modules/helpers:176:18) at Object.<anonymous> (C:\Users\sedef\Desktop\Random Downloads\VS Code\bot_test\index.js:2:16) at Module._compile (node:internal/modules/cjs/loader:1376:14) at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) at Module.load (node:internal/modules/cjs/loader:1207:32) at Module._load (node:internal/modules/cjs/loader:1023:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) { code: 'MODULE_NOT_FOUND', requireStack: ['C:\Users\sedef\Desktop\Random Downloads\VS Code\bot_test\index.js'] } Node.js v20.11.1 i can make a github repo if someone helps so they can check my code
17 replies