# Dekadent Learn v1.0.1 by CoolMaster for Eggdrop

**Category:** Eggdrop_Script
**Original Author:** CoolMaster

## Description
A TCL script designed to manage learn data in an IRC bot, allowing users to add, delete, and view definitions for words.

## Key Features
- Allows adding a definition to a word using the `!learn` command.
- Enables deleting all definitions of a word with the `!forget` command.
- Supports inserting a definition at the end of a word's existing definitions via the `!insert` command.
- Deletes a specific definition from a word with the `!del` command.
- Locks and unlocks words to prevent changes using the `!lock` and `!unlock` commands respectively.
- Retrieves a definition for a word through private messages or channel messages.
- Lists all learnable words in the bot's database.

## File Analysis
- **dlearn.tcl** — The main script file containing configuration, triggers, and procedures to manage learn data. It handles adding, deleting, locking, unlocking, and viewing definitions for words.
- **learn_add** — A procedure that adds a definition to a word if the user has the necessary access rights.
- **learn_forget** — Deletes all definitions of a specified word from the database if the user has the required permissions.
- **learn_list** — Lists all learnable words in the bot's database.
- **learn_lockwords** — Displays locked words that cannot be modified by users.
- **learn_forceback** — Forces a backup of the learn data file.