# Topic1.5.tcl

**Category:** Eggdrop_Bot
**Original Author:** iamdeath (modified from Shodane)

## Description
This script is designed to save and refresh a channel's topic every two hours, ensuring that the topic remains consistent across different servers.

## Key Features
- **Channel Topic Management**: Saves the current channel topic and refreshes it after every 2 hours.
- **Configuration**: Allows setting the target channel and the directory where the topic data is stored.
- **Event Binding**: Uses `bind topc` to save the topic when a new one is set, and `bind time` to trigger the topic refresh.

## File Analysis
- **topic1.5.tcl** — The main script that handles saving and refreshing the channel topic every two hours.
  - **bind topc - * save_topic**: Binds the `save_topic` procedure to the topic change event.
  - **proc save_topic {tpnick uhost hand channel topic}**: Saves the current topic if it matches the configured channel.
  - **bind time - "00 *" two:hour**: Binds the `two:hour` procedure to run every hour on the half-hour mark.
  - **proc two:hour {m h args}**: Refreshes the topic from the saved file if it exists and the current time matches the configured interval.