forked from maubot/reactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base-config.yaml
49 lines (46 loc) · 981 Bytes
/
base-config.yaml
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
templates:
reaction:
type: m.reaction
variables:
react_to_event: "{{event.content.get_reply_to() or event.event_id}}"
content:
m.relates_to:
rel_type: m.annotation
event_id: $${react_to_event}
key: $${reaction}
alot:
type: m.room.message
content:
msgtype: m.image
body: image.png
url: "mxc://maunium.net/eFnyRdgJOHlKXCxzoKPQbwLV"
info:
mimetype: image/png
w: 680
h: 510
size: 247492
thumbnail_url: "mxc://maunium.net/PMxffxMfcUZeWeeYMDCdghBG"
thumbnail_info:
w: 680
h: 510
mimetype: image/png
size: 233763
default_flags:
- ignorecase
antispam:
room:
max: 1
delay: 60
user:
max: 2
delay: 60
rules:
twim_cookies:
rooms: ["!FPUfgzXYWTKgIrwKxW:matrix.org"]
matches: [^TWIM]
template: reaction
variables:
reaction: 🍪
alot:
matches: [alot]
template: alot