Skip to content
← Back to Community
How to fix?
Profile icon
HuskyCorgi

This is an outdated tutorial that uses an .env file so I don't know how I would make it so that it still works without the .env file

Link: https://www.freecodecamp.org/news/create-a-discord-bot-with-python/

Answered by VulcanWM [earned 5 cycles]
View Answer
Voters
Profile icon
HuskyCorgi
Comments
hotnewtop
Profile icon
VulcanWM

On the left hand side of the repl you should see a padlock. Click on the padlock to see all your .env stuff

Profile icon
HuskyCorgi

@VulcanWM How would I make one though

Profile icon
VulcanWM

it will show a box with key and value, add your env key name and value and then you can use the code you used for getting the token @HuskyCorgi

Profile icon
HuskyCorgi

Okay cool @VulcanWM

Profile icon
VulcanWM
Profile icon
HuskyCorgi
Profile icon
VulcanWM

Yeah but instead in the key enter TOKEN and in the value enter the token @HuskyCorgi

Profile icon
HuskyCorgi

@VulcanWM Trying it now.

Profile icon
HuskyCorgi
Profile icon
HuskyCorgi

@VulanWM is that okay?

Profile icon
VulcanWM

Oh yeah just line 8 cleint to client @HuskyCorgi

Profile icon
HuskyCorgi
Profile icon
HuskyCorgi

@VulcanWM Wait it worked thank you for all your help

Profile icon
VulcanWM

np! Mark the comment as the answer :) @HuskyCorgi