# LegoMan's Quote Database Script for Eggdrop (~1.6.18)

**Category:** Eggdrop_Script
**Original Author:** Matt Stanton (LegoMan on Undernet)

## Description
This script provides a mechanism to store and retrieve quotes in IRC channels using an Eggdrop bot. Users with sufficient access can add, display, and manage quotes through channel commands.

## Key Features
- **In-Channel Commands:**
  - `!q <searchstring>`: Displays a random quote or a specific quote matching the search string.
  - `!addq <quote>`: Adds a new quote to the database.
- **Partyline Commands:**
  - `.numqs <#channel>`: Reports the number of quotes stored for a specified channel.
  - `.listqs <#channel> [all|by <handle>|matching <pattern>|range <start #> <end #>]`: Lists all or filtered quotes from a specific channel.
  - `.remqs <#channel> <space-separated list of numbers>`: Marks quotes as deleted by their index number.
  - `.mergeqs <filename>`: Merges quotes from an external file into the database.
  - `.savetoqs <filename>`: Saves the current quote database to a specified file for backup purposes.
  - `.purgeqs`: Removes all deleted quotes from the database.

## File Analysis
- **legomans_quotescript_v1.2.0.tcl** — The main script file containing configuration settings and command bindings.
- **legomans_quotescript.README** — A README file providing instructions for setup and usage, but not reflective of the actual code functionality.