# Blitzed Trivia Bot

**Category:** mIRC_Bot  
**Original Author:** Erik Fears

## Description
Blitzed Trivia is a C++ IRC bot designed to run unattended on an IRC server, providing trivia games and managing user interactions within a channel.

## Key Features
- Manages player scores and teams.
- Handles game commands like `!start`, `!stop`, `!add`.
- Tracks activity of users in the channel.
- Provides real-time question answering and scoring.
- Supports configuration through a `.conf` file.

## File Analysis
- **activity.cpp** — Manages user activity tracking.
- **activity.h** — Header for activity management.
- **client.cpp** — Handles client connections and interactions with the IRC server.
- **client.h** — Header for client management.
- **config.cpp** — Loads and parses configuration settings from a `.conf` file.
- **config.h** — Header for configuration management.
- **datatypes.h** — Defines data structures used throughout the bot.
- **game.cpp** — Manages game logic, including question loading and scoring.
- **game.h** — Header for game management.
- **h.h** — Main header file including all necessary includes.
- **log.cpp** — Handles logging messages to a file.
- **log.h** — Header for logging functionality.
- **main.cpp** — Entry point of the bot, initializes all components and starts the main loop.
- **options.h** — Defines constants and macros used throughout the bot.
- **parse.cpp** — Parses IRC messages and extracts relevant information.
- **parse.h** — Header for parsing functionality.
- **player.cpp** — Manages player data, including adding/removing players and tracking scores.
- **player.h** — Header for player management.
- **question.cpp** — Loads and manages trivia questions from a database file.
- **question.h** — Header for question management.