My bot wont work

i dont know how to say this but when i press run it doesnt say bot is online and the only thing that works is the website

the only way that i can start the bot up is throught the shell

Hi @bh-archiving , welcome to the forums!
Did you rename the file to something else?

it isnt python its nodejs

Sooo… @bh-archiving Did you change the file name from index.js to something else?

No I did not rename the file

1 Like

Hey, @bh-archiving welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:


Welcome to Ask! The link to your Repl would be helpful, as Ethan requested. However, looking at the three Repls on your profile, I noticed that you put the token for your bot(s) in the code. You really should be putting them in secrets, so that other people can’t steal them.


the “bh-forum-archives” repl is the problem, my bot doesnt have admin permissions in my server

1 Like

(I’m assuming this is on the Discord end of things here)
If that’s the case, and it needs admin, just grant it a bot role that has admin enabled.

1 Like

In that case, you definitely want to put your bot token in a secret. Otherwise some random thief on Replit can steal your token and make a malware bot.