Ask coding questions

← Back to all posts
Unable to create/rename .env file for discord bots (all languages and templates)
LabboLab (0)

To set up a discord bot you need to make/rename an env to a unnamed .env, but repl now doesnt allow this, therefore its impossible to make a discord bot (as far as i can think of)
Any workarounds?

CodeLongAndPros (1624)

No, it appears this is a new "feature" :sadge:

WhyThoBro (0)

Hi, with the new secrets system you have to create a secret, name it whatever you want ie BOT_TOKEN, then make the value of that secret the bot token, just the bot token not anything else, then['BOT_TOKEN']) the BOT_TOKEN is whatever you named ur secret

Jet1234 (1)

use node.js, it's more simple