A Discord bot for Overwatch hero selection and information management.
- Random Hero Selection: Pick a random Overwatch hero
- Role-Based Selection: Select a random hero from a specific role (Tank, Damage, Support)
- Hero Information: Get detailed information about specific heroes
- Hero Listing: View all available heroes organized by role
- Interactive Embeds: Beautiful Discord embeds for all responses
- Python 3.9 or higher
- discord.py 2.3.0+
- python-dotenv 1.0.0+
-
Clone or download this repository
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile with your Discord bot token:cp .env.example .env
-
Add your Discord bot token to the
.envfile:DISCORD_TOKEN=your_bot_token_here COMMAND_PREFIX=!
- Go to Discord Developer Portal
- Click "New Application"
- Go to "Bot" section and click "Add Bot"
- Copy the token and paste it in your
.envfile - Enable "Message Content Intent" under Privileged Gateway Intents
- Go to OAuth2 > URL Generator and select scopes:
bot - Select permissions:
Send Messages,Embed Links,Read Messages/View Channels - Use the generated URL to invite the bot to your server
!help- Show all available commands!select- Pick a random hero!heroes- List all heroes by role!hero <name>- Get info about a specific hero!role <role>- Pick a random hero from a role (Tank, Damage, Support)
.
├── bot.py # Main bot file with commands
├── requirements.txt # Python dependencies
├── .env.example # Example environment variables
├── .github/
│ └── copilot-instructions.md
├── data/
│ └── heroes.json # Hero data
└── README.md # This file
python bot.pyThe bot will connect to Discord and appear online!
Feel free to add more heroes, features, or improvements!
This project is open source and available under the MIT License.