Skip to content

bragestoefringshaug/overwatch-session-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overwatch Discord Bot

A Discord bot for Overwatch hero selection and information management.

Features

  • 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

Requirements

  • Python 3.9 or higher
  • discord.py 2.3.0+
  • python-dotenv 1.0.0+

Installation

  1. Clone or download this repository

  2. Install dependencies:

    pip install -r requirements.txt
  3. Create a .env file with your Discord bot token:

    cp .env.example .env
  4. Add your Discord bot token to the .env file:

    DISCORD_TOKEN=your_bot_token_here
    COMMAND_PREFIX=!
    

Getting a Discord Bot Token

  1. Go to Discord Developer Portal
  2. Click "New Application"
  3. Go to "Bot" section and click "Add Bot"
  4. Copy the token and paste it in your .env file
  5. Enable "Message Content Intent" under Privileged Gateway Intents
  6. Go to OAuth2 > URL Generator and select scopes: bot
  7. Select permissions: Send Messages, Embed Links, Read Messages/View Channels
  8. Use the generated URL to invite the bot to your server

Commands

  • !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)

Project Structure

.
├── 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

Running the Bot

python bot.py

The bot will connect to Discord and appear online!

Contributing

Feel free to add more heroes, features, or improvements!

License

This project is open source and available under the MIT License.

About

Discord bot for tracking Overwatch gaming sessions with stats and SQLite persistence.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages