Building a Discord Chatbot with Python (4) - Receiving Messages with Your Chatbot
In this article, we’ll finally dive into creating a chatbot in Python.
Firstly, ensure that your working directory, discord-chatbot
, contains at least the following two components from our previous sessions:
.venv
directory: This is for a virtual environment.
.discord_token
file: This file contains a Discord token.
1. Activating the Virtual Environment
-
Move to the
discord-chatbot
directory and activate the virtual environment: