diff --git a/CHANGELOG.md b/CHANGELOG.md index b3109b5..5292794 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -161,7 +161,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Audio alerts (beep) - Custom commands: `/highlight`, `/unhighlight`, `/highlightuser` -- **url_logger.lua** (218 lines): +- **url_logger.lua** (217 lines): - URL detection and logging from chat messages - Timestamp and channel information storage - Search and filtering capabilities @@ -169,7 +169,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Custom commands: `/urls [count|clear|search]`, `/urlconfig` #### Added - Comprehensive Documentation -- **scripts/README.md** (600+ lines): +- **scripts/README.md** (740+ lines): - Complete scripting system overview - Getting started tutorial - Full IRC API reference for all 50+ functions diff --git a/README.md b/README.md index 7d2a975..c8d322b 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Built with Rust for memory safety, performance, and cross-platform reliability. - 🎨 **Script Management**: Load, unload, enable, disable, reload scripts - 📊 **State Queries**: Access server, channel, and user information - 💬 **UI Integration**: Print messages, display notifications, update status -- 🔍 **Complete Documentation**: 600+ line guide with API reference and tutorials +- 🔍 **Complete Documentation**: 740+ line guide with API reference and tutorials - ✅ **Production Ready**: 11 comprehensive tests, all passing ## 🏗️ Current Development Status @@ -212,7 +212,7 @@ Built with Rust for memory safety, performance, and cross-platform reliability. - highlight.lua - Keyword highlighting with notifications - url_logger.lua - URL logging with search and filtering - ✅ **Script Management**: Load, unload, enable, disable, reload operations -- ✅ **Comprehensive Documentation**: 600+ line [scripts/README.md](scripts/README.md) with complete API reference +- ✅ **Comprehensive Documentation**: 740+ line [scripts/README.md](scripts/README.md) with complete API reference - ✅ **Production Quality**: 11 tests passing, zero errors, all functionality verified #### Pending Phase 4 Components diff --git a/scripts/README.md b/scripts/README.md index 4c2bc31..e6dcb5a 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -395,7 +395,11 @@ function irc.on_message(event) end end -irc.print("Auto-responder loaded with " .. #responses .. " triggers") +local trigger_count = 0 +for _ in pairs(responses) do + trigger_count = trigger_count + 1 +end +irc.print("Auto-responder loaded with " .. trigger_count .. " triggers") ``` ### Example: Channel Logger @@ -448,7 +452,7 @@ function irc.on_message(event) local message = event.params[#event.params] -- Match URLs (basic pattern) - for url in message:gmatch("https?://[%w-_%.%?%.:/%+=&]+") then + for url in message:gmatch("https?://[%w-_%.%?:/%+=&%%#~]+") then -- This would require http client API -- irc.http_get(url, function(response) -- local title = response:match("