# Riddle.tcl

**Category:** Eggdrop_Bot
**Original Author:** Leg (onelegguy at gmail dot com)

## Description
This script is designed to give players a riddle in a specific channel, with a time limit for answering it. If the player answers correctly, they are given ops for 1 hour; otherwise, they are banned for 60 minutes. The script also bans anyone who helps the player by giving them the answer in the main channel.

## Key Features
- **!riddle** command to start a riddle game.
- Players have 3 minutes to answer the riddle correctly.
- Correct answers grant ops for 1 hour, incorrect answers result in a 60-minute ban.
- Bans players who help others by giving them the correct answer in the main channel.
- Temporarily enforces channel modes after the game ends.

## File Analysis
- **riddle101.tcl** — Contains the script logic to manage riddles and player interactions. It binds commands, sets timers, and handles riddle answers.
- **scripts/riddles.txt** — Required file containing riddles and their corresponding answers in a specific format.