title: How would I go about creating an .env file for my discord bot token?
body: <p>So, I was recently told that just storing the Discord Bot token in a variable at the top is bad practice and a .env file would be better. Can someone explain to me how I would create the .env file with the token in it and import it into my bot.py file?</p>