I was following a tutorial on how to create a discord bot ( this one ) but the problem is that Replit no longer lets you create your own .env files.
Which was kind of tricky to me since I’m still a beginner in JS. I tried pasting the bot ID into the “Key” field and the value (secret key) into the “Key” field but had no luck.
I also tried adding the TOKEN= before the value but just kept returning different errors.
I saw other threads here but they weren’t about this specific discord tutorial so following along was hard.
Edit: I am using the token from the video just to demonstrate how to use the new env file setup in replit. If you want to connect with your discord bot then you will use the value you created through discord.
I didn’t use the one in the video… I’m obviously not going to type it all in. I used mine from the discord application developer site. It’s all copy and pasted anyway from the “copy” buttons, so I’m 100% sure there are no “spelling” mistakes token wise.
@jwilkins.oboe Hi when you say the Value in the secrets is exact do you want us to copy the TOKEN given by Discord or do we have to input what you wrote?