Discord bot.
KooralYT

I need help. I keep popping up one error all the time and I don't know what to do.

You are viewing a single comment. View All
Nedia

Try "npm install" in the shell.

KooralYT
Nedia

@KooralYT Okay so it seems like you did something wrong during setup and so the Replit is broken since it can't install discord.js. Make a new Replit please.

Nedia

@KooralYT Oh and also you just leaked your Discord token to the world.

KooralYT

@Nedia this is fake token

KooralYT

@Nedia Your idea has no effect but tomorrow I think it will be with you

Nedia

@KooralYT Does the code work?

KooralYT

@Nedia yeah this is the basic code to run the discord bot

Nedia

@KooralYT Buddy you need to learn some more javascript

KooralYT

@Nedia well, you can help me how to fix it, don't you?

Nedia

@KooralYT Just make a new Replit and copy the code and run it

Nedia

@KooralYT Oh and also make sure you have your token in Replit secrets

KooralYT

@Nedia the same problem :(

KooralYT

@Nedia what is that "Error: Cannot find module 'node:events'"

Nedia

@KooralYT It can't find the module which is why I suggested npm install.

KooralYT

@Nedia but it doesn't help

KooralYT

@Nedia the same appears all the time at startup and with npm install