So basically, I made a discord bot and stored the token in my .env file. To get the file I use
import os and
from dotenv import load_dotenv. Although, when I put my project on glitch, it can’t install the module.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
My code is:
TOKEN = os.getenv('DISCORD_TOKEN')
client = discord.Client()
Does anyone have a solution to this? Or is there an alternative to dotenv?