Craft & Code Club - Discord Bot Steps to create a Discord Bot Create an application in Discord Setup Python environment Configure Environment Variables Configure Environment Variables Then we need to create a .env file with the following content in the root of the project: DISCORD_API_TOKEN=<your_discord_api_key> Install the required packages dotenv echo python-dotenv >> requirements.txt discord.py echo discord.py >> requirements.txt Install packages pip install -r requirements.txt References discord.py Discord Bot Documentation