Skip to content
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/

You are viewing a single comment. View All
Answered by VulcanWM [earned 5 cycles]
View Answer
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
VulcanWM

Oh yeah just line 8 cleint to client

@HuskyCorgi

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

@VulcanWM
is this it
image

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

@VulcanWM

image
![image]

image
(https://storage.googleapis.com/replit/images/1621874622687_18a88395fc52a712270bafa76b6f8d26.png)

Profile icon
HuskyCorgi

@VulanWM
is that okay?

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