-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplan.json
46 lines (46 loc) · 1.2 KB
/
plan.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
{
"chains": [
{
"id":"STREAM-RUNNERTY-FOLLOWER",
"name":"It streams the twitter user account to listen for new followers",
"triggers":[
{
"id":"twitter_default",
"command":"follow"
}
],
"processes":[
{
"id": "SEND_DIRECT_ES",
"name": "Sends a direct message to the new follower in Spanish",
"depends_process": {
"$and": [
{"@GV(user_lang)": {"$eq": "es"}}
]
},
"exec":{
"id":"twitter_default",
"command":"direct",
"screen_name":"@GV(user_screen_name)",
"textToSend": "Hola, gracias por seguirme."
}
},
{
"id": "SEND_DIRECT_EN",
"name": "Sends a direct message to the new follower in English",
"depends_process": {
"$and": [
{"@GV(user_lang)": {"$ne": "es"}}
]
},
"exec":{
"id":"twitter_default",
"command":"direct",
"screen_name":"@GV(user_screen_name)",
"textToSend": "Hello, thank you for following me."
}
}
]
}
]
}