basic.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export environment variables
4
Configure the Discord bot
Enable the Message Content privileged intent. Install the bot with View Channels, Send Messages, Read Message History, Create Public Threads, and Send Messages in Threads permissions.
5
Run the example
Save the code above as
basic.py, then run: