picoclaw/pkg/channels/matrix
hezixu dc956f2feb feat(config): allow placeholder text to be string or list
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
2026-03-25 17:57:11 +08:00
..
init.go feat(matrix): support encrypted messages with E2EE 2026-03-24 21:46:10 +08:00
matrix.go feat(config): allow placeholder text to be string or list 2026-03-25 17:57:11 +08:00
matrix_test.go refactor(media): centralize temp media dir path 2026-03-14 12:01:47 +08:00