-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommands.json
168 lines (168 loc) · 7.17 KB
/
commands.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"commands":
{
"welcome": {
"name" : "welcome",
"commandType" : "UserInput",
"toBeSent" : "Welcome to pkBot!\nYou may try the following:\n\n1. Type *vaccine* to configure search parameters and book a vaccination slot.\n\n2. Type *book* to go right ahead to book an Appointment with pre-configured data.\n\nTo unsubscribe, type and send *unsubscribe*\n",
"responseType" : "string",
"expectedResponse" : "vaccine",
"nextCommand": "vaccine"
},
"subscribe": {
"name" : "subscribe",
"commandType" : "Function",
"toBeSent" : "Thanks you for your interest.\n*You have been subscribed now!*\n\nTo unsubscribe, type and send *unsubscribe*\n",
"responseType" : "string",
"expectedResponse" : "",
"nextCommand": "welcome"
},
"unsubscribe": {
"name" : "unsubscribe",
"commandType" : "Function",
"toBeSent" : "Thank you for your interest in pkBot.\n*You have been unsubscribed now.*\n\nTo subscribe again, type and send *subscribe*\n",
"responseType" : "string",
"expectedResponse" : "",
"nextCommand": ""
},
"book": {
"name" : "book",
"commandType" : "Function",
"toBeSent" : "",
"responseType" : "string",
"expectedResponse" : "",
"nextCommand": "search"
},
"vaccine": {
"name" : "vaccine",
"commandType" : "UserInput",
"toBeSent" : "Please enter the name of the state. For example, Maharashtra",
"responseType" : "string",
"expectedResponse" : "",
"nextCommand": "district"
},
"loadsaveddata": {
"name" : "loadsaveddata",
"commandType" : "UserInput",
"toBeSent" : "Please choose yes (y) or no (n).\n\nUse the following saved data?\n\nState: *%s*\nDistrict: *%s*\nAge: *%d*\nPreferred CenterID: *%d*\nBookAtAnyCenter: *%t*\n\nIf *BookAtAnyCenter* is true (choose yes), it will try to book at any available center, not limited to preferred center.\n\nYour already saved eligible beneficiaries for first dose, if any, will be used.\n",
"responseType" : "boolean",
"expectedResponse" : "",
"nextYCommand": "search",
"nextNCommand": "state",
"nextCommand": "vaccine"
},
"state": {
"name" : "state",
"commandType" : "UserInput",
"toBeSent" : "Please enter the name of the state. For example, Maharashtra",
"responseType" : "string",
"expectedResponse" : "",
"nextCommand": "district"
},
"district": {
"name" : "district",
"commandType" : "UserInput",
"toBeSent" : "Please enter the name of the district. For example, Nagpur",
"responseType" : "string",
"expectedResponse" : "",
"nextCommand": "age"
},
"age": {
"name" : "age",
"commandType" : "UserInput",
"toBeSent" : "Please enter your age in years. For example, 45",
"responseType" : "number",
"expectedResponse" : "",
"nextCommand": "bookanyslot"
},
"bookanyslot": {
"name" : "bookanyslot",
"commandType" : "UserInput",
"toBeSent" : "Would you like to book at any available center within %s ?\n\nPlease choose yes (y) or no (n).\n",
"responseType" : "number",
"expectedResponse" : "",
"nextYCommand": "otpbeneficiary",
"nextNCommand": "otpbeneficiary",
"nextCommand": "otpbeneficiary"
},
"otpbeneficiary": {
"name" : "otpbeneficiary",
"commandType" : "Function",
"toBeSent" : "We need to get your beneficiaries details.\nPlease enter the OTP received on this mobile number.\nYour beneficiaries will be saved so that we can attempt booking appointments when they become available.",
"responseType" : "number",
"expectedResponse" : "",
"errorResponse2" : "Sorry, OTP could not be generated for authentication. Please try again!",
"nextCommand": "beneficiariesupdate"
},
"beneficiariesupdate": {
"name" : "beneficiariesupdate",
"commandType" : "Function",
"toBeSent" : "Following beneficiaries received and saved.\n%s\n\nSearching for available slots now.🤩",
"responseType" : "",
"expectedResponse" : "",
"nextCommand": "search"
},
"search": {
"name" : "search",
"commandType" : "Function",
"toBeSent" : "Go to https://selfregistration.cowin.gov.in/ immediately to book yourself \n*or* \nEnter/type the preferred center ID from the below list to attempt booking by bot\n\n",
"errorResponse1" : "No slot available for Dose 1!",
"errorResponse2" : "Sorry, OTP could not be generated for authentication.",
"responseType" : "number",
"expectedResponse" : "",
"nextCommand": "otp"
},
"otp": {
"name" : "otp",
"commandType" : "UserInput",
"toBeSent" : "We have found as many as *%d* slot(s) on *%s* for you at *%s*, with total *%d* doses available.\nPlease enter the OTP received on this mobile number ASAP.",
"responseType" : "number",
"expectedResponse" : "",
"nextCommand": "beneficiaries"
},
"beneficiaries": {
"name" : "beneficiaries",
"commandType" : "Function",
"toBeSent" : "*Skip this* if you have chosen *BookAnySlot*.\n\nPlease choose from the following beneficiaries.\nEnter 1 to book only for the first beneficiary.\nYou can also type 1,2,3 etc. to choose multiple\n%s",
"responseType" : "",
"expectedResponse" : "",
"nextCommand": "readcaptcha"
},
"readcaptcha": {
"name" : "readcaptcha",
"commandType" : "Function",
"toBeSent" : "Please type the exact characters (case sensitive) as you see in this CAPTCHA image\n\nAuto detection: %s \n\nType only if it's different.",
"responseType" : "string",
"errorResponse1" : "Failed getting CAPTCHA for %s.",
"expectedResponse" : "",
"nextCommand": "bookingconfirmation"
},
"bookingconfirmation": {
"name" : "bookingconfirmation",
"commandType" : "Function",
"toBeSent" : "Appointment confirmed! Appt ID: %s\n",
"responseType" : "",
"errorResponse1" : "Appointment booking failed! %s\nPlease try again.",
"expectedResponse" : "",
"nextCommand": ""
},
"certificate": {
"name" : "certificate",
"commandType" : "Function",
"toBeSent" : "We need to get you authenticated using the same mobile number you originally registered with. Enter the OTP you received.",
"responseType" : "number",
"expectedResponse" : "",
"errorResponse2" : "Sorry, OTP could not be generated for authentication. Please try again!",
"nextCommand": "downloadcertificate"
},
"downloadcertificate": {
"name" : "downloadcertificate",
"commandType" : "Function",
"toBeSent" : "Certificate downloaded",
"responseType" : "string",
"expectedResponse" : "",
"errorResponse2" : "Sorry, certificate could not be downloaded.",
"nextCommand": ""
}
}
}