Table of Contents

1. Install discord.py and python-dotenv

Assuming you already have Python and pip installed, you're going to want to run these commands in a terminal:

pip install discord.py
pip install python-dotenv

2. Create a Discord application and bot

Before getting into the code, we need to create a “Discord application.” This is essentially an application that holds a bot. It can be accessed on http://discord.com/developers

The page is going to look a little something like this:

Click on the "New Application" button in the top right of the screen: