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/
On the left hand side of the repl you should see a padlock. Click on the padlock to see all your .env stuff
.env
Oh yeah just line 8 cleint to client
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
Okay cool
works?
Yeah but instead in the key enter TOKEN and in the value enter the token
(https://storage.googleapis.com/replit/images/1621874622687_18a88395fc52a712270bafa76b6f8d26.png)
np! Mark the comment as the answer :)
How to fix?
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/
On the left hand side of the repl you should see a padlock. Click on the padlock to see all your
.env
stuffOh yeah just line 8 cleint to client
@HuskyCorgiit 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
@HuskyCorgiOkay cool
@VulcanWMworks?
@HuskyCorgiYeah but instead in the key enter TOKEN and in the value enter the token
@HuskyCorgi![image]
(https://storage.googleapis.com/replit/images/1621874622687_18a88395fc52a712270bafa76b6f8d26.png)
np! Mark the comment as the answer :)
@HuskyCorgi