Commit Graph
4 Commits
Author SHA1 Message Date
nocode aa62ea5dc7 feat(announcement): add announcement presets for scheduler and menu
Add reusable announcement presets that can be selected through the menu (/bannonce) and used by the scheduler. Includes five preset templates: restart, shutdown, maintenance, event, and discord with customizable titles, messages, styles, and durations.
2026-07-20 13:36:43 +02:00
nocode 77545fe2cf feat(announcement): add max length and sound configuration options
Add two new configuration options to the announcement system:
- announcement_max_length: limit message length to 80 characters
- announcement_sound: specify a sound file to play when announcement appears

Also improve alignment and clarify comments for existing options.
2026-07-20 13:36:30 +02:00
nocode 077a0d4357 feat(announcement): add configuration table for announcement module
Initialize the BladW.Announcement.Conf configuration table with announcement style and duration settings. The announcement_style can be set to either 'simple' or 'loader', and announcement_duration controls the display time in seconds for loader style announcements.
2026-07-20 12:46:51 +02:00
nocode 6cc464b145 feat(loader)!: implement glob pattern matching for module discovery
Replace simple prefix matching with full glob pattern support for discovering root folders.

Changes:
- Add EscapePattern() to escape Lua magic characters
- Add GlobToPattern() to convert glob patterns (e.g., "bladw_*") to Lua regex patterns
- Refactor FindRootFolders() to support:
  • Exact matches without wildcards (e.g., "bladw_announcement")
  • Glob patterns with * in prefix/suffix/middle positions
- Update default config root from "bladw_*" to "bladw_announcement"
- Improve documentation with usage examples
- Add new announcement module with client, server, and shared files
- Update rndx.lua library (formatting/whitespace changes)

BREAKING CHANGE: The root config now expects exact folder names or glob patterns instead of simple prefixes. Existing configs using "bladw_*" will still work but the matching behavior changes from prefix-only to glob-based pattern matching.
2026-07-01 16:00:44 +02:00