-
Notifications
You must be signed in to change notification settings - Fork 5
/
mastodon-integation-demo.json
72 lines (71 loc) · 1.88 KB
/
mastodon-integation-demo.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
{
"schema_version": 1,
"name": "Mastodon Integation Demo",
"description": "A small agent network that demonstrates how to interface Huginn with a Mastodon instance.",
"source_url": false,
"guid": "4af5327c83189f7665639e14966a43a8",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#444b5d",
"icon": "globe",
"exported_at": "2018-08-19T03:24:52Z",
"agents": [
{
"type": "Agents::PostAgent",
"name": "Send event to Mastodon",
"disabled": false,
"guid": "1dc3df8d1a54fa62ce7b8bc1151e6ad5",
"options": {
"post_url": "https://mastodon.social/api/v1/statuses",
"expected_receive_period_in_days": "365",
"content_type": "form",
"method": "post",
"payload": {
"status": "{{ message }}{{ title }} {{ url }}"
},
"headers": {
"Authorization": "Bearer {% credential mastodon_access_token %}"
},
"emit_events": "false",
"no_merge": "false"
},
"schedule": "never",
"keep_events_for": 3600,
"propagate_immediately": false
},
{
"type": "Agents::ManualEventAgent",
"name": "Manually inject events into the Mastodon agent",
"disabled": false,
"guid": "a68ea24a3c514dcf2bf3b7ecde76a676",
"options": {
"message": "Hello, world!"
},
"keep_events_for": 3600
},
{
"type": "Agents::RssAgent",
"name": "Pull the RSS feed on the Doctor's blog",
"disabled": false,
"guid": "aa60dda6e8275442549329e164d10ec7",
"options": {
"expected_update_period_in_days": "365",
"clean": "false",
"url": "https://drwho.virtadpt.net/rss/feed.xml"
},
"schedule": "every_12h",
"keep_events_for": 604800
}
],
"links": [
{
"source": 1,
"receiver": 0
},
{
"source": 2,
"receiver": 0
}
],
"control_links": [
]
}