# VDM 2.0 Script

**Category:** Eggdrop_Bot
**Original Author:** par Galdinx, MenzAgitat et ealexp

## Description
A Tcl script for an IRC client that fetches random or specific quotes from a website and displays them in the channel.

## Key Features
- Fetches random VDMs (Vie de Merde) from [www.viedemerde.fr](http://www.viedemerde.fr).
- Allows fetching a single VDM by its ID.
- Displays the last N VDMs, where N is configurable.
- Supports command triggers `!vdm` with various options like `last`, `last-n`.
- Implements anti-flood protection to prevent excessive use of the script.

## File Analysis
- **vdm2.0.tcl** — The main script file containing configuration settings and commands for fetching VDMs, displaying them in the channel, and handling anti-flood mechanisms.
  - Configures command names, flags, HTTP parameters, text formatting, and flood control.
  - Implements the `::vdm::vdm_command` procedure to handle incoming IRC commands.
  - Uses `::vdm::fetch_vdm` to retrieve VDMs from the website.
  - Applies text filters and splits lines for proper display in the channel.