A multifunctional Discord bot written in Python using the discord.py library. This project demonstrates a foundational bot setup with commands, intents, and reply handling — a good starting point for expanding with more features.
This script initializes a Discord bot with:
- A custom command prefix (
/) - Intents to handle message content
- A basic set of responses
- Asynchronous programming via
discord.py
It prints a ready message when connected, sets a presence status, and syncs application commands with Discord. :contentReference[oaicite:1]{index=1}
- Connects and logs the bot’s online status
- Uses command prefix and slash commands
- Handles user messages with basic responses
- Demonstrates use of asynchronous behavior in Discord bots
- Python 3.8+
discord.py
Install Discord.py with:
pip install discord.py
Create a .env file in the root directory with your bot token:
DISCORD_TOKEN=your_token_here
```bash
pip install discord.py