Allow PlaceholderConfig.Text to accept either a single string or an array of strings, from which one is randomly selected at runtime. This maintains backward compatibility with existing single-string configs while enabling random placeholder selection. Changes: - Modify PlaceholderConfig.Text type from string to FlexibleStringSlice - Add GetRandomText() helper method for random selection - Update SendPlaceholder in all channels to use GetRandomText() - Update config.example.json with array placeholder examples - Update Matrix channel documentation |
||
|---|---|---|
| .. | ||
| testdata | ||
| command_registration.go | ||
| command_registration_test.go | ||
| init.go | ||
| parse_markdown_to_md_v2.go | ||
| parse_markdown_to_md_v2_test.go | ||
| parser_markdown_to_html.go | ||
| telegram.go | ||
| telegram_dispatch_test.go | ||
| telegram_group_command_filter_test.go | ||
| telegram_test.go | ||