# XDCC Packet Spider System

**Category:** Eggdrop_Bot
**Original Author:** TijN

## Description
This is an IRC bot designed to spider channels for XDCC packets and manage a network of bots across multiple IRC networks, with the ability to create new bots and control their activities. It also includes functionality to store and search packet information in a MySQL database.

## Key Features
- **Bot Control:** Master bot can join/part channels on given networks.
- **Network Management:** Can restart or kill crawling bots for specific networks.
- **Bot Creation:** Automatically creates new eggdrop.conf files and starts new eggdrop processes linked to the masterbot.
- **MySQL Integration:** Directly posts crawled packet information into a MySQL database.
- **Search Module:** Allows searching for packets in the database.

## File Analysis
- **Mcontrols.tcl** — Manages various bot commands like joining/parting channels, restarting bots, and displaying network information.
- **mkbot.tcl** — Configures new eggdrop bots with specific parameters and starts them automatically.
- **xdcc-crawler.tcl** — Sets up and manages MySQL database tables for storing XDCC packet data.
- **Scontrols.tcl** — Handles server-related commands and updates channel information.
- **database.inc.tcl** — Provides functions to interact with the MySQL database, including adding and updating user/channel/network records.
- **search.inc.tcl** — Implements a search feature for packet files stored in the database.
- **xdcc_spdr_bnetcon_mysql(posting,crawler)_sys.nfo** — Documentation detailing the purpose and usage of the bot.