-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_policy.json
More file actions
89 lines (89 loc) · 1.95 KB
/
Copy pathexample_policy.json
File metadata and controls
89 lines (89 loc) · 1.95 KB
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
80
81
82
83
84
85
86
87
88
89
{
"schemaVersion": 0.1,
"identificationStamp": null,
"policy_key": "example_policy",
"default_room_settings": {
"visibility": "public",
"guest_access": false,
"history_visibility": "invited",
"join_rule": "invite"
},
"rooms": {
"example1": {
"alias": "#example1:example.org",
"active": true,
"avatar_url": "mxc://example.org/abc123",
"room_name": "Example Room 1",
"invitees": {
"@user:server.org": 0,
"@special_admin:server.org": 100,
"admin_user_group": 100,
"mod_user_group": 50
},
"is_space": false,
"parent_spaces": [
"parent_space_id",
"!fBumzgIydwJHbcLgGN:example.org"
],
"topic": "This is an example room for the secretary bot.",
"suggested": false,
"join_rule": "restricted",
"visibility": "public",
"guest_access": false,
"history_visibility": "invited",
"encrypt": false,
"bot_actions": {
"rss_creation": {
"template": "rss",
"arguments": {
"link": "rss-feed-link.de/feed.rss"
}
}
}
}
},
"bot_actions": {
"rss": {
"name": "rss",
"bots": [
"@rss:t2bot.io"
],
"commands": [
"!rss subscribe {link}",
"!rss subscriptions"
],
"sub_bot_actions": [
{
"template": "some_other_action",
"arguments": {
"key": "value"
}
}
]
},
"some_other_action": {
"name": "some_other_action",
"bots": [
"@some_bot:example.org"
],
"commands": [
"!some_command {argument}"
],
"sub_bot_actions": []
}
},
"user_groups": {
"admin_user_group": {
"users": [
"@tanesh:example.org",
"@wander:example.org"
]
},
"mod_user_group": {
"users": [
"@bert:example.org",
"@switch:example.org"
]
}
}
}