-
Notifications
You must be signed in to change notification settings - Fork 5
/
elephant.json
79 lines (78 loc) · 2.16 KB
/
elephant.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"schema_version": 1,
"name": "Elephant",
"description": "A quick and dirty agent network for archiving one's toots from a Mastodon instance.\r\n\r\nNote that you MUST set \"ENABLE_INSECURE_AGENTS=true\" in your huginn/.env file!",
"source_url": false,
"guid": "1d2cc5383250c8aea17d71737d8c1db5",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#de685b",
"icon": "gears",
"exported_at": "2019-11-10T23:54:11Z",
"agents": [
{
"type": "Agents::RssAgent",
"name": "Elephant - Pull a Fediversian's RSS or ATOM feed",
"disabled": false,
"guid": "0cc15d603a33d06383d07e19fedf01b5",
"options": {
"expected_update_period_in_days": "365",
"clean": "false",
"url": "https://mastodon.social/@Gargron.rss"
},
"schedule": "every_1h",
"keep_events_for": 86400
},
{
"type": "Agents::LocalFileAgent",
"name": "Elephant - Write toots as JSON files into a directory",
"disabled": false,
"guid": "44c4e563b47b412eb46a7eb8febde7eb",
"options": {
"mode": "write",
"watch": "false",
"path": "/path/to/write/toots/to/{{ 'now' | date: '%s' }}.json",
"append_radio": "false",
"append": "false",
"data": "{{ toot | json }}"
},
"schedule": "never",
"keep_events_for": 86400,
"propagate_immediately": false
},
{
"type": "Agents::EventFormattingAgent",
"name": "Elephant - Build a toot",
"disabled": false,
"guid": "fb78c5f6854bc6e339c9ee31e2a6c9c8",
"options": {
"instructions": {
"toot": {
"id": "{{ id }}",
"url": "{{ url }}",
"links": "{{ links }}",
"title": "{{ title }}",
"content": "{{ content }}",
"authors": "{{ authors }}",
"categories": "{{ categories }}",
"last_updated": "{{ last_updated }}"
}
},
"mode": "clean"
},
"keep_events_for": 86400,
"propagate_immediately": false
}
],
"links": [
{
"source": 0,
"receiver": 2
},
{
"source": 2,
"receiver": 1
}
],
"control_links": [
]
}