Skip to content

Instantly share code, notes, and snippets.

@dcsan
Created December 31, 2015 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcsan/9642ae00c341aa185f60 to your computer and use it in GitHub Desktop.
Save dcsan/9642ae00c341aa185f60 to your computer and use it in GitHub Desktop.
Rebot.parseTest = function() {
var blob = {
"begin": {
"global": {
"debug": true
},
"var": {
"name": "EnglishChat",
"botname": "EnglishChatBot",
"grouplink": "https://telegram.me/joinchat/03326044003066291b2c290e44aa6dbc"
},
"sub": {
"i'm": "i am",
"i'd": "i would",
"i've": "i have",
"i'll": "i will",
"don't": "do not",
"isn't": "is not",
"you'd": "you would",
"you're": "you are",
"you've": "you have",
"you'll": "you will",
"what's": "what is",
"whats": "what is",
"what're": "what are",
"what've": "what have",
"what'll": "what will",
""": "\"",
"'": "'",
"&": "&",
"&lt;": "<",
"&gt;": ">",
"+": "plus",
"-": "minus",
"/": "divided",
"*": "times",
"he'd": "he would",
"he's": "he is",
"he'll": "he will",
"she'd": "she would",
"she's": "she is",
"she'll": "she will",
"they'd": "they would",
"they're": "they are",
"they've": "they have",
"they'll": "they will",
"we'd": "we would",
"we're": "we are",
"we've": "we have",
"we'll": "we will",
"can't": "can not",
"whos": "who is",
"who's": "who is",
"who'd": "who would",
"who'll": "who will",
"didn't": "did not",
"it's": "it is",
"could've": "could have",
"couldn't": "could not",
"should've": "should have",
"shouldn't": "should not",
"would've": "would have",
"wouldn't": "would not",
"when's": "when is",
"when're": "when are",
"when'd": "when did",
"y": "why",
"u": "you",
"ur": "your",
"r": "are",
"n": "and",
"im": "i am",
"wat": "what",
"wats": "what is",
"ohh": "oh",
"becuse": "because",
"becasue": "because",
"becuase": "because",
"practise": "practice",
"its a": "it is a",
"fav": "favorite",
"fave": "favorite",
"yesi": "yes i",
"yetit": "yet it",
"iam": "i am",
"welli": "well i",
"wellit": "well it",
"amfine": "am fine",
"aman": "am an",
"amon": "am on",
"amnot": "am not",
"realy": "really",
"iamusing": "i am using",
"amleaving": "am leaving",
"yuo": "you",
"youre": "you are",
"didnt": "did not",
"ain't": "is not",
"aint": "is not",
"wanna": "want to",
"brb": "be right back",
"bbl": "be back later",
"gtg": "got to go",
"g2g": "got to go",
"lyl": "love you lots",
"gf": "girlfriend",
"g/f": "girlfriend",
"bf": "boyfriend",
"b/f": "boyfriend",
"b/f/f": "best friend forever",
":-)": "smile",
":)": "smile",
":d": "grin",
":-d": "grin",
":-p": "tongue",
":p": "tongue",
";-)": "wink",
";)": "wink",
":-(": "sad",
":(": "sad",
":'(": "cry",
":-[": "blush",
":-\\": "uncertain",
":-/": "uncertain",
":-s": "uncertain",
"8-)": "cool",
"8)": "cool",
":-*": "kissyface",
":-!": "foot",
"o:-)": "angel",
">:o": "angry",
":@": "angry",
"8o|": "angry",
":$": "blush",
":-$": "blush",
":[": "bat",
"(a)": "angel",
"(h)": "cool",
"8-|": "nerdy",
"|-)": "tired",
"+o(": "ill",
"*-)": "uncertain",
"^o)": "raised eyebrow",
"(6)": "devil",
"(l)": "love",
"(u)": "broken heart",
"(k)": "kissyface",
"(f)": "rose",
"(w)": "wilted rose"
},
"person": {
"i am": "you are",
"you are": "I am",
"i'm": "you're",
"you're": "I'm",
"my": "your",
"your": "my",
"you": "I",
"i": "you"
},
"array": {
"malenoun": [
"male",
"guy",
"boy",
"dude",
"boi",
"man",
"men",
"gentleman",
"gentlemen"
],
"femalenoun": [
"female",
"girl",
"chick",
"woman",
"women",
"lady",
"babe"
],
"mennoun": [
"males",
"guys",
"boys",
"dudes",
"bois",
"men",
"gentlemen"
],
"womennoun": [
"females",
"girls",
"chicks",
"women",
"ladies",
"babes"
],
"lol": [
"lol",
"lmao",
"rofl",
"rotfl",
"haha",
"hahaha"
],
"colors": [
"white",
"black",
"orange",
"red",
"blue",
"green",
"yellow",
"cyan",
"fuchsia",
"gray",
"grey",
"brown",
"turquoise",
"pink",
"purple",
"gold",
"silver",
"navy"
],
"height": [
"tall",
"long",
"wide",
"thick"
],
"measure": [
"inch",
"in",
"centimeter",
"cm",
"millimeter",
"mm",
"meter",
"m",
"inches",
"centimeters",
"millimeters",
"meters"
],
"yes": [
"yes",
"yeah",
"yep",
"yup",
"ya",
"yea",
"ok",
"sure",
"i guess",
"alright",
"thats fine"
],
"no": [
"no",
"nah",
"nope",
"nay",
"no way",
"noes"
],
"greeting": [
"hi",
"hello",
"hey",
"whatsup",
"how are you",
"yo",
"hola"
],
"want": [
"want",
"prefer",
"would like"
],
"ok": [
"sure",
"OK",
"no problem",
"absolutely",
"yes sure",
"certainly"
]
},
"triggers": []
},
"topics": {
"global_commands": [
{
"trigger": "reset",
"reply": [
"resetting!\n{topic=random}{@start}\nhelpFlag: true"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "teacher{weight=20}",
"reply": [
"Hi, this is your pocket English teacher! How can I help?\nType 'menu' for a list of things you can do.\nhelpFlag: true\nwho: teacher1"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "(help|帮助)",
"reply": [
"Here are some things you can type:\nmenu - list of features\nlessons - list of lessons\nscore - track your progress\nteacher - call your teacher\nhelpFlag: true\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "lessons{weight=10}",
"reply": [
"We have some new lessons for you! {topic=lessons}\ngoto: start\nwho: teacher1"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "quiz",
"reply": [
"QuizTime!\n{topic=quizmenu}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "blog",
"reply": [
"BLOG\n🚧正在施工🚧\nunder construction"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "faq",
"reply": [
"FAQ\n🚧正在施工🚧\nunder construction"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "riveexplain *",
"reply": [
"title: 👉 <star>\ntype: card\nurl: #APPDOMAIN/explain/<star>"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "explain",
"reply": [
"I can explain words and grammar to you. What do you want to know about? eg:\n👉 explain should\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "greeting",
"reply": [
"{topic=greeting}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "subscribe",
"reply": [
"{topic=onboarding}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "status{weight=20}",
"reply": [
"we were talking about <get topic>"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "gotopic{weight=20}",
"reply": [
"{topic=gotopic}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "gotopic *{weight=20}",
"reply": [
"going to topic <star> {topic=<star>}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "gotopic * t *{weight=20}",
"reply": [
"going to topic <star1> trigger <star2>\n{topic=<star1>}{@<star2>}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "mainmenu{weight=20}",
"reply": [
"🏁 Main menu options 🏁\n{topic=mainmenu}\ngoto: start"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "whats new",
"reply": [
"whats new? check out our lessons!\ntype 'lessons' to begin."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "test",
"reply": [
"🚀 all systems go!"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "echo *",
"reply": [
"you said <star>"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testing{weight=20}",
"reply": [
"testing...\n{topic=testing}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testloop",
"reply": [
"{topic=testloop}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "dontunderstand",
"reply": [
"sorry, what?",
"er, I don't understand.",
"hmm, can you say that again?",
"err, what?"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"gotopic": [
{
"trigger": "start",
"reply": [
"what topic do you want to go to?"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "*",
"reply": [
"going to topic <star>\n{topic=<star>}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"lessons_shared": [
{
"trigger": "*",
"reply": [
"{@what}\n{@hints}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "what",
"reply": [
"I'm sorry, can you repeat that?",
"I don't understand."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "score",
"reply": [
"score is [ <get score> ]\nhintcount <get hintcount>"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hints",
"reply": [
"<add hintcount=1>\n<sub score=1>\nhelpFlag: true\n{@showhint}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "showhint",
"reply": [
"too many hints - <get hintcount> {@skip}"
],
"condition": [
"<get hintcount> == 0 => type 'hint' for a hint!",
"<get hintcount> == 1 => {@hint}",
"<get hintcount> == 2 => {@lessonhelp}",
"<get hintcount> == 3 => {@skip}"
],
"redirect": null,
"previous": null
},
{
"trigger": "lessonhelp",
"reply": [
"Lesson Help\nlong press on the hint to get a translation\nhint - to see a hint\nvocab - vocabulary for this lesson\nskip - question but lose 5 points\nquit - the whole lesson"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "right",
"reply": [
"<add score=5>\n{@next}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "score",
"reply": [
"<add score=5>"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "skip",
"reply": [
"OK lets skip this question\n<sub score=5>\n<set hintcount=0>\nscore is <get score>\nwho: teacher1\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "newlesson *",
"reply": [
"new lesson is <star>\n<set score=0>"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "endlesson",
"reply": [
"Let's see how you did.\nYou scored <get score>\n{@scorefeedback}\ngoto: exitlesson"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "scorefeedback",
"reply": [],
"condition": [
"<get score> < -5 => You need to study a lot more.",
"<get score> < -2 => Hmm, not great.",
"<get score> <= 1 => Hmm, not too bad",
"<get score> > 1 => Good work!",
"<get score> > 3 => Great job!"
],
"redirect": null,
"previous": null
},
{
"trigger": "newtopic",
"reply": [
"<set hintcount=0>\ngoto: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "quit",
"reply": [
"you want to quit the lesson?"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "(yes)",
"reply": [
"OK, lets check your score. {@endlesson}"
],
"condition": [],
"redirect": null,
"previous": "you want to quit *"
},
{
"trigger": "exitlesson",
"reply": [
"Let's see what else there is to do!\n{topic=mainmenu}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"random": [
{
"trigger": "start",
"reply": [
"Hello there!\n{@menu}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "startup test",
"reply": [
"all systems starting up"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "start",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "startup test",
"reply": [
"All bot system go!"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "prompt",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "prompt",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "prompt",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "prompt",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "*",
"reply": [
"Hello!"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"testing": [
{
"trigger": "start",
"reply": [
"testing mode activated!"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testhint",
"reply": [
"this is a hint\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testvideo",
"reply": [
"testvideo\ntype: video\ntitle: intro movie\ndescription: ready to learn english fast with WeTeach?\nmedia_id: IssswGRdIGvk0cklw3xt-dhytp1vlUs85mfQ48VcfMs6qDibzX5qW1cmAUITn-JG\nthumb_media_id: DcDzBAqH7zZ5lsXbdkQTqazqG-HwD5rxc59sGW-6fKD1N5z6p9EH39QL3Bf8wiku"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testimage",
"reply": [
"title: lesson end pic\nmedia_id: wlAubpAf0YtezieXu4vW_2YOU9Z3d86Cl9MDo92tW9RAJiqx0CgXXetWh2hd9SkJ\ntype: image\nwho: teacher1"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testvoice",
"reply": [
"testvoice\ntype: voice\ntitle: test voice\ndescription: this is a test of voice audio\nmedia_id: IJgNKPAnXU6rs_U5OjD-wCz49GiYUq2EWlMV7RkR_CUE1BvcpRzW43MmbXSel0mq"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testcard",
"reply": [
"title: Checking into a hotel\ntype: card\ndescription: learn the basics of checking into a hotel, including how to describe what type of room you want and for how many nights.\npicurl: http://dcsan.github.io/chatu-data/public/assets/covers/500/welcome-vegas.jpg"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "(testgoto|testgoto1)",
"reply": [
"line one\ngoto: testgoto2"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testgoto2",
"reply": [
"line two\ngoto: testgoto3"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testgoto3",
"reply": [
"line three\ngoto: testgoto4"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testgoto4",
"reply": [
"line four\ngoto: testgoto5"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testgoto5",
"reply": [
"line five"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testflag",
"reply": [
"helpFlag should be checked\nhelpFlag: true"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "testreplace",
"reply": [
"title: lesson end\ntype: image\nmedia_id: #lesson_end"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "continue",
"reply": [
"continue here"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "correction",
"reply": [
"correction here"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "right",
"reply": [
"you are right!"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "wrong",
"reply": [
"you're wrong!"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "outro",
"reply": [
"this is the outro"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "*",
"reply": [
"testing - random response [1]",
"testing - random response [2]",
"testing - random response [3]"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"mainmenu": [
{
"trigger": "start",
"reply": [
"title: Main Menu\ntype: card\ndescription: Chat with real English teachers\npicurl: http://dcsan.github.io/chatu-data/public/assets/covers/500/weike-mainmenu.jpg\ngoto: playerchoice"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "playerchoice",
"reply": [
"What do you want to do?\n1⃣ Practice Chatting / Lesson\n2⃣ Quiz\nwho: teacher1"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "*",
"reply": [
"{@randomquiz}",
"{@randomlesson}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "[*] (1|lesson|randomlesson) [*]",
"reply": [
"Let's try a lesson around a scenario? {topic=lessonmenu}\nwho: teacher1\ngoto: randomlesson",
"Are you ready to do some roleplaying? {topic=lessonmenu}\nwho: teacher1\ngoto: randomlesson"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "[*] (2|quiz|randomquiz) [*]",
"reply": [
"Are you ready for a quick quiz? {topic=quizmenu}\nwho: teacher1\ngoto: randomquiz",
"How about a quick vocabulary game? {topic=quizmenu}\nwho: teacher1\ngoto: randomquiz"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"quizmenu": [
{
"trigger": "start",
"reply": [
"{@quizintro}\nwho: teacher1\ngoto: play"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "play",
"reply": [
"{topic=quiz1setup}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "quizintro",
"reply": [
"Ready for a quiz?",
"Let's do a quiz!",
"Time to play a game!"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "randomquiz",
"reply": [
"{topic=quiz1setup}\ngoto: start"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"quiz_shared": [
{
"trigger": "quit",
"reply": [
"{topic=finishquiz}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "right",
"reply": [
"✅ Right! ✅\n{@continue}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "wrong",
"reply": [
"❌ Wrong! ❌\n{@continue}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hintdefault",
"reply": [
"💡a hint will go here!\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"quiz1setup": [
{
"trigger": "start",
"reply": [
"Your friend has invited you to a dinner party.\nwho: teacher1\ngoto: dinnerpartyimage"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "dinnerpartyimage",
"reply": [
"type: image\nmedia_id: CAkukWNWy90fQQtqCBM50fbgeKk0vtJzzQYCU7ris_a9RPl3oDdLF2qlVzkTWbZ2\ngoto: talk"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "talk",
"reply": [
"You want to bring wine, but you don't know which one to choose.\nwho: teacher1\ngoto: store"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "wineimage",
"reply": [
"type: image\nmedia_id: KmlqrkvzOTFp3-Mo0cMALsLTbwnEWPAB6Vc4vN6W5B8WPZZ_N-AzFZnrsIVJecc-\ngoto: store"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "store",
"reply": [
"Ask the wine store clerk for a recommendation.\nwho: teacher1\n{topic=quiz1}\ngoto: start"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"quiz1": [
{
"trigger": "winestorereq",
"reply": [
"type: image\nmedia_id: OWdpRbKY1AHpwl4_XkMKV3fr62wVVsFlrl8Ztc40Vay-cAvyQ531EX_tNohmbboM\ngoto: winestoreq"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "start",
"reply": [
"Question One\ngoto: question"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "question",
"reply": [
"My friend invited me to a dinner party. I need to bring some wine to ____ house.\n👇\n1⃣ their\n2⃣ they're\n3⃣ there"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "(1|their)",
"reply": [
"{@right}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "*",
"reply": [
"{@wrong}\nhelpFlag: true"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"💡The house belongs to someone.\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "continue",
"reply": [
"{topic=quiz2}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"quiz2": [
{
"trigger": "start",
"reply": [
"Question Two\ngoto: question"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "question",
"reply": [
"I'm not sure if ____ red or white wine drinkers.\n👇\n1⃣ their\n2⃣ they're\n3⃣ there"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "(2|theyre)",
"reply": [
"{@right}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "*",
"reply": [
"{@wrong}\nhelpFlag: true"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"💡There are a couple of people.\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "continue",
"reply": [
"{topic=quiz3}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"quiz3": [
{
"trigger": "start",
"reply": [
"Question Three\ngoto: question"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "question",
"reply": [
"Are ____ any wines you'd recommend?\n👇\n1⃣ their\n2⃣ they're\n3⃣ there"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "(3|there)",
"reply": [
"{@right}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "*",
"reply": [
"{@wrong}\nhelpFlag: true"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"💡Find out what is available.\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "continue",
"reply": [
"{topic=quiz4}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"quiz4": [
{
"trigger": "start",
"reply": [
"Question Four\ngoto: question"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "question",
"reply": [
"Could I taste those wines to find out if ____ good?\n👇\n1⃣ their\n2⃣ they're\n3⃣ there"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "(2|theyre)",
"reply": [
"{@right}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "*",
"reply": [
"{@wrong}\nhelpFlag: true"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"💡There are a couple of wines\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "continue",
"reply": [
"{topic=quiz5}{@start}"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"quiz5": [
{
"trigger": "start",
"reply": [
"Question Five\ngoto: question"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "question",
"reply": [
"____ are so many good choices, but I think they'll like the red wine best.\n👇\n1⃣ their\n2⃣ they're\n3⃣ there"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "(3|there)",
"reply": [
"{@right}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "*",
"reply": [
"{@wrong}\nhelpFlag: true"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"💡There are a couple of wines\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "continue",
"reply": [
"{topic=finishquiz}\ngoto: start"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"finishquiz": [
{
"trigger": "start",
"reply": [
"type: image\nmedia_id: l_Cfi52gqAD90IgTaFN-AFB6KxREfI1bxkKIvC5Hg8pWp3RXuCXM82FE6hHc7Gn-\ngoto: welldone"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "welldone",
"reply": [
"You're on fire! 🔥🔥🔥\n{topic=mainmenu}\ngoto: start",
"Well done!! 😃😃😃\n{topic=mainmenu}\ngoto: start",
"Look at you! ✅ Well done!\n{topic=mainmenu}\ngoto: start"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"quizreview": [
{
"trigger": "start",
"reply": [
"What did you think about the quiz?\nwho: teacher1\ngoto: translation"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "translation",
"reply": [
"你想想测验是什么?\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "*",
"reply": [
"That is interesting.\n{topic=quiztomenu}\ngoto: start"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"quiztomenu": [
{
"trigger": "start",
"reply": [
"Are you ready to try something new?"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "(*|yes)",
"reply": [
"Great. Good luck!\nwho: teacher1\n{topic=mainmenu}\ngoto: start"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "no",
"reply": [
"You should try something new!\nwho: teacher1\n{topic=mainmenu}\ngoto: start"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"hotel_checkin": [
{
"trigger": "prompt",
"reply": [
"How can I help you?\ngoto: hint\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"💡Say you want to check in\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "checkin",
"reply": [
"OK let me see.\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "can i check in (*)",
"reply": [
"sure.\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "i want to check in",
"reply": [
"OK!\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "i would like to check in",
"reply": [
"OK!\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"Let me see about your room.\n{topic=hotel_room}\ngoto: start"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "start",
"reply": [
"You arrive at the hotel.\ngoto: prompt\nwho: teacher1"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "no smoking",
"reply": [
"hmm\ngoto: clarify"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"hotel_directions": [
{
"trigger": "show me where the subway is",
"reply": [
"OK\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"Yes, let me show you on the map.\n{topic=hotel_random}\ngoto: start"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "where is the subway?",
"reply": [
"OK\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "start",
"reply": [
"where would you like to go?\ngoto: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "how to get to subway",
"reply": [
"(@ok)"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"ask how to get to the subway"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "can you tell me where the subway is?",
"reply": [
"Yes, let me show you on the map\ngoto: hint\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "can you give me directions to the subway?",
"reply": [
"OK.\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"hotel_end": [
{
"trigger": "[*] hard",
"reply": [
"I will try to find something easier for the next lesson then.\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "[*] easy",
"reply": [
"OK, well let's try something harder next time.\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"What's next?!\n{topic=mainmenu}\ngoto: start"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"type 'mainmenu' to go back to the menu and do something else."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "start",
"reply": [
"How did you find that lesson? Was it too easy or too hard?"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"hotel_intro": [
{
"trigger": "(@yes)",
"reply": [
"OK, let's go!\n{topic=hotel_checkin}\ngoto: start\nwho: teacher1"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "go",
"reply": [
"OK let's go!\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "blue",
"reply": [
"color <set color=blue>"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "help",
"reply": [
"{@howtoplay}"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"yes or no please."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "howtoplay",
"reply": [
"Just type 'yes' when you're ready."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "image",
"reply": [
"image: #abby"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "intro1",
"reply": [
"type: image\nmedia_id: #hotelman\ngoto: intro2"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "intro2",
"reply": [
"type: voice\nmedia_id: #welcome-voice"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"OK!\ngoto: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "start",
"reply": [
"This lesson is about checking into a hotel room. Are you ready?\ngoto: intro3\nwho: teacher1"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "not yet",
"reply": [
"well, I'm waiting for you!\ngoto: no"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "now",
"reply": [
"right now? ready?"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "(@no)",
"reply": [
"OK. I'll wait for you! {@howtoplay}"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"hotel_passport": [
{
"trigger": "start",
"reply": [
"Can I see your passport please?"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"...."
],
"condition": [],
"redirect": null,
"previous": null
}
],
"hotel_random": [
{
"trigger": "(@no)",
"reply": [
"Well in that case the lesson we're all done here!\n{topic=hotel_end}\ngoto: start\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "(@yes)",
"reply": [
"And what is that?"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "[*] directions [*]",
"reply": [
"Let me see\n{topic=hotel_directions}\ngoto: start\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "[*] restaurant [*]",
"reply": [
"Certainly.\n{topic=hotel_restaurant}\ngoto: start\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"you can ask for directions or restaurant recommendations.\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"If you've completed the lesson, just say 'no'.\nwho: teacher1"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "start",
"reply": [
"Is there anything else I can help with?\ngoto: hint\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"hotel_restaurant": [
{
"trigger": "* french restaurant",
"reply": [
"(@ok)\ngoto: next\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"Ask for a french restaurant\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"Certainly, I recommend La Fondue. It's very close by.\n{topic=hotel_directions}\ngoto: start\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "start",
"reply": [
"What kind of restaurant would you like?\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"hotel_room": [
{
"trigger": "i prefer a non-smoking (room)",
"reply": [
"...\ngoto: clarify"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "start",
"reply": [
"We have a smoking room available now. Will that be ok?\ngoto: hint\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "next",
"reply": [
"OK I'll change it to a non-smoking room.\n{topic=hotel_random}\ngoto: start\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "not smoke",
"reply": [
"...\ngoto: clarify"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "no",
"reply": [
"OK, what would you prefer?"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "* non smoking room",
"reply": [
"hmm.\ngoto: clarify\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "* non-smoking room",
"reply": [
"hmm.\ngoto: clarify\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "* not smoking *",
"reply": [
"hmm.\ngoto: clarify\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "clarify",
"reply": [
"You mean you would like a non-smoking room?\ngoto: next"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "hint",
"reply": [
"💡say you want a non-smoking room\nwho: hint"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "i (want|would like) a non smoking room",
"reply": [
"ok.\nwho: hotelman"
],
"condition": [],
"redirect": null,
"previous": null
}
],
"hotel_shared": [
{
"trigger": "vocab",
"reply": [
"These are the new words for this lesson -\n> reservation\n> non-smoking\n> prefer"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "red",
"reply": [
"you like red?\n<set color=red>"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "here",
"reply": [
"and there"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "blue",
"reply": [
"- one or\n- two\n- or three\n<set color=blue>"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "color",
"reply": [
"well, how about <get color>"
],
"condition": [],
"redirect": null,
"previous": null
},
{
"trigger": "here",
"reply": [
"in hotel_shared"
],
"condition": [],
"redirect": null,
"previous": null
}
]
},
"inherits": {
"global_commands": {},
"gotopic": {
"global_commands": 1
},
"lessons_shared": {
"global_commands": 1
},
"random": {
"global_commands": 1
},
"testing": {
"global_commands": 1
},
"mainmenu": {
"global_commands": 1
},
"quizmenu": {
"global_commands": 1
},
"quiz_shared": {
"global_commands": 1
},
"quiz1setup": {
"quiz_shared": 1
},
"quiz1": {
"quiz_shared": 1
},
"quiz2": {
"quiz_shared": 1
},
"quiz3": {
"quiz_shared": 1
},
"quiz4": {
"quiz_shared": 1
},
"quiz5": {
"quiz_shared": 1
},
"finishquiz": {
"global_commands": 1
},
"quizreview": {
"global_commands": 1
},
"quiztomenu": {
"global_commands": 1
},
"hotel_checkin": {
"hotel_shared": 1
},
"hotel_directions": {
"hotel_shared": 1
},
"hotel_end": {
"hotel_shared": 1
},
"hotel_intro": {
"hotel_shared": 1
},
"hotel_passport": {
"hotel_shared": 1
},
"hotel_random": {
"hotel_shared": 1
},
"hotel_restaurant": {
"hotel_shared": 1
},
"hotel_room": {
"hotel_shared": 1
},
"hotel_shared": {
"lessons_shared": 1
}
},
"includes": {
"global_commands": {},
"gotopic": {},
"lessons_shared": {},
"random": {},
"testing": {},
"mainmenu": {},
"quizmenu": {},
"quiz_shared": {},
"quiz1setup": {},
"quiz1": {},
"quiz2": {},
"quiz3": {},
"quiz4": {},
"quiz5": {},
"finishquiz": {},
"quizreview": {},
"quiztomenu": {},
"hotel_checkin": {},
"hotel_directions": {},
"hotel_end": {},
"hotel_intro": {},
"hotel_passport": {},
"hotel_random": {},
"hotel_restaurant": {},
"hotel_room": {},
"hotel_shared": {}
}
}
Rebot.brain.parse('testbrain', blob, (err, res) => {
console.log('testParse result', err, res);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment