# Library.tcl

**Category:** mIRC_Addon
**Original Author:** Mirora

## Description
This script provides a simple keyword lookup system for IRC channels, allowing users to query definitions of keywords stored in a library file.

## Key Features
- **Public Commands:**
  - `? <keyword>` — Look up the definition of a specified keyword.
- **Admin Commands:**
  - `.lib add <keyword> <Definition>` — Add a new keyword and its definition to the library.
  - `.lib del <keyword>` — Remove an existing keyword from the library.
  - `.lib list` — Display all keywords and their definitions stored in the library.

## File Analysis
- **Library.tcl** — The main script file that defines the functionality of the keyword lookup system. It handles command bindings, parsing arguments, and interacting with a text-based library file to retrieve or modify keyword definitions.
- **lib:help** — A procedure that processes public commands for looking up keywords.
- **lib:control** — A procedure that processes admin commands for adding, deleting, and listing keywords in the library.
- **lib:list** — A procedure that retrieves all stored keywords and their definitions from the library file.
- **lib:check** — A procedure that checks if a keyword exists in the library and returns its definition if found.
- **lib:remove** — A procedure that removes a specified keyword from the library.