Ask coding questions

← Back to all posts
What's wrong?
DSAEvan

What's wrong with this discord bot? Can I see a working discord bot that can at least be online?

Voters
KeaganLandfried
DSAEvan
Comments
hotnewtop
DSAEvan

@CoolJames1610 Do You See What's Wrong? Halp. #Looking at your tutorial

RyanBlake3

Make sure to replace where it says DISCORD_TOKEN with a token from discord's site. Besides that, I can't see any reason it wouldn't be working

DSAEvan

@RyanBlake3 My token is in txt.env

Zeliktric

U have to name ur file .env@DSAEvan

DSAEvan

@Zeliktric how? I can't name it .env

DSAEvan
Zeliktric

Ur supposed to use the secrets [email protected]

DSAEvan

@Zeliktric do I put my token in the key or value?

Zeliktric
KeaganLandfried

@DSAEvan
The .env files used to be used for secret variables. Now, replit added a new secrets tab on the left side of your code browser. Just click on the lock to add a new secret.

DSAEvan

@Zeliktric what about the key?

Zeliktric