Skip to content

Instantly share code, notes, and snippets.

@mskog
Created September 14, 2020 18:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mskog/092f655ea7013fcd59db7d9c3c1fbe9f to your computer and use it in GitHub Desktop.
Save mskog/092f655ea7013fcd59db7d9c3c1fbe9f to your computer and use it in GitHub Desktop.
{
"schema_version": 1,
"name": "Dilbert slack",
"description": "No description provided",
"source_url": false,
"guid": "3688fc7de4df62dc706880b34d873b22",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "gear",
"exported_at": "2020-09-14T18:26:23Z",
"agents": [
{
"type": "Agents::SlackAgent",
"name": "Dilbert Slack",
"disabled": false,
"guid": "2e19fb750929d5e78d6c9f6e5722e634",
"options": {
"webhook_url": "SLACK_HOOK_URL",
"channel": "#notifications",
"username": "Dilbert",
"message": "{{title}}{%line_break%}{{url}}{%line_break%}{{image}}",
"icon": ""
},
"propagate_immediately": false
},
{
"type": "Agents::WebsiteAgent",
"name": "Dilbert feed",
"disabled": false,
"guid": "61538e4b7b540f5bac59dc9a7cef00c0",
"options": {
"expected_update_period_in_days": "2",
"url": "DILBERT_FEED_URL",
"type": "json",
"mode": "on_change",
"extract": {
"title": {
"path": "items[*].title"
},
"url": {
"path": "items[*].url"
}
}
},
"schedule": "every_1h",
"keep_events_for": 0,
"propagate_immediately": false
},
{
"type": "Agents::WebsiteAgent",
"name": "Dilbert Image",
"disabled": false,
"guid": "c00e67d5c0aeedaea8787e91b9f599e9",
"options": {
"expected_update_period_in_days": "2",
"url_from_event": "LARGEST_IMAGE_URL?url={{url}}",
"type": "json",
"mode": "merge",
"extract": {
"image": {
"path": "largestImage"
}
}
},
"schedule": "every_12h",
"keep_events_for": 0,
"propagate_immediately": false
}
],
"links": [
{
"source": 1,
"receiver": 2
},
{
"source": 2,
"receiver": 0
}
],
"control_links": [
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment