mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2024-12-22 02:32:43 +01:00
uk.half-shot.matrix-hookshot.feed: add template variations
This commit is contained in:
parent
dd0b7da6fe
commit
120117aa58
@ -13,6 +13,7 @@ perform two state installations/directories/whatever:
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
|
||||
- [feed](#feed)
|
||||
- [Template variations](#template-variations)
|
||||
- [installation](#installation)
|
||||
- [Usage without integration manager](#usage-without-integration-manager)
|
||||
|
||||
@ -29,16 +30,23 @@ contains:
|
||||
```json
|
||||
{
|
||||
"label": "YLE News in English",
|
||||
"template": "$FEEDTITLE: $AUTHOR $LINK \n $SUMMARY",
|
||||
"template": "$FEEDTITLE: $AUTHOR $LINK ($DATE) $SUMMARY",
|
||||
"url": "https://feeds.yle.fi/uutiset/v1/recent.rss?publisherIds=YLE_NEWS"
|
||||
}
|
||||
```
|
||||
|
||||
- `"template"` is optional and defaults to `New post in $FEEDNAME: $LINK`
|
||||
- Note: `$LINK` actually means `[$TITLE](LINK)`.
|
||||
[#731](https://github.com/matrix-org/matrix-hookshot/issues/731)
|
||||
- Note: `$LINK` actually means `[$TITLE](LINK)`. `$URL` is just the link.
|
||||
- [Upstream documentation](https://matrix-org.github.io/matrix-hookshot/latest/setup/feeds.html#feed-templates)
|
||||
|
||||
### Template variations
|
||||
|
||||
This contains the whole JSON line to easen copy-pasting as my events are missing it entirely.
|
||||
|
||||
- default: `"template": "New post in $FEEDNAME: $LINK",`
|
||||
- Matrix: `"template": "$FEEDTITLE: $AUTHOR $LINK ($DATE) $SUMMARY",`
|
||||
- IRC: `"template": "$URL $FEEDTITLE: $AUTHOR ($DATE) $SUMMARY",`
|
||||
|
||||
## installation
|
||||
|
||||
This probably has or should be left for the integration manager.
|
||||
|
Loading…
Reference in New Issue
Block a user