# bseen1.4.2.tcl

**Category:** Eggdrop_Bot
**Original Author:** Bass (admin@sanmaris.ro)

## Description
A Tcl script for Eggdrop IRC bots that maintains a database of seen nicks, providing functionality to search for nicks and handle flood protection.

## Key Features
- Maintains a database of nick sightings.
- Supports public, private, and DCC searches.
- Implements flood protection with customizable limits.
- Provides commands like `!seen`, `.seen`, and `!lastspoke`.
- Logs and backs up data to specified paths.
- Handles channel-specific behavior for seen responses.

## File Analysis
- **bseen1.4.2.tcl** — Contains the main script logic, including database management, flood protection, and command handling.
- **bs_read** — Reads the database from a file or backup if available.
- **bs_update** — Updates the database to ensure compatibility with new versions of Eggdrop.
- **bs_save** — Saves the current state of the database to a file.
- **bs_flood_init** — Initializes flood protection parameters.
- **bs_flood** — Detects and handles potential floods.
- **bs_part**, **bs_join**, **bs_sign**, **bs_kick**, **bs_nick**, **bs_splt**, **bs_rejn**, **bs_chon**, **bs_chjn**, **bs_chpt**, **bs_away** — Bind handlers for various IRC events.
- **bs_unseen** — Allows removal of nicks from the database based on channel.
- **bs_botsearch** — Searches the database for nick information.