Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
e9d3a62
Update script.json
marialilokyee Jul 6, 2016
b1b2de8
Update script.js
marialilokyee Jul 6, 2016
6c781fc
Update script.json
marialilokyee Jul 6, 2016
2e11b60
Delete esther.jpg
marialilokyee Jul 6, 2016
5f8a110
Add files via upload
marialilokyee Jul 6, 2016
4a1d4f7
Update script.json
marialilokyee Jul 6, 2016
e507dca
Update script.json
marialilokyee Jul 6, 2016
724e3bc
Update script.json
marialilokyee Jul 7, 2016
ba89eae
Update script.js
marialilokyee Jul 7, 2016
4586faf
Update script.json
marialilokyee Jul 7, 2016
e563f99
Update script.json
marialilokyee Jul 7, 2016
aab6deb
Update script.json
marialilokyee Jul 7, 2016
d591c0c
Update script.json
marialilokyee Jul 7, 2016
d34bf95
Update script.json
marialilokyee Jul 7, 2016
0e7e4da
Update script.js
marialilokyee Jul 7, 2016
e4f3184
Update script.js
marialilokyee Jul 7, 2016
200f5da
Update script.js
marialilokyee Jul 7, 2016
09181df
Update script.js
marialilokyee Jul 7, 2016
571e397
Update script.json
marialilokyee Jul 7, 2016
fbc4fd0
Update script.js
marialilokyee Jul 7, 2016
6dfb329
Update script.json
marialilokyee Jul 7, 2016
9713da7
Update script.js
marialilokyee Jul 7, 2016
7a6847e
Update script.js
marialilokyee Jul 7, 2016
eb8212b
Update script.js
marialilokyee Jul 7, 2016
a8f7d8a
Update script.json
marialilokyee Jul 7, 2016
fa5bb75
Update script.json
marialilokyee Jul 8, 2016
3427b28
Update script.json
marialilokyee Jul 8, 2016
8ce4521
Update script.json
marialilokyee Jul 8, 2016
e39ecdd
Update script.json
marialilokyee Jul 8, 2016
03cc43f
Update script.json
marialilokyee Jul 8, 2016
bc44a5a
Update script.json
marialilokyee Jul 8, 2016
f56d0f9
Update script.json
marialilokyee Jul 8, 2016
aa2fcc9
Update script.json
marialilokyee Jul 8, 2016
8fd996c
Update script.json
marialilokyee Jul 8, 2016
5f5271d
Update script.json
marialilokyee Jul 8, 2016
e381847
Add files via upload
marialilokyee Jul 8, 2016
0ab9fda
Update script.json
marialilokyee Jul 8, 2016
d41f89c
Update script.json
marialilokyee Jul 8, 2016
5374a71
Update script.json
marialilokyee Jul 8, 2016
3547233
Update script.json
marialilokyee Jul 8, 2016
c9823f8
Update script.json
marialilokyee Jul 9, 2016
b92f0a7
Update script.json
marialilokyee Jul 9, 2016
e713c87
Update script.json
marialilokyee Jul 9, 2016
4cea00b
Add files via upload
marialilokyee Jul 9, 2016
f849da0
Update script.json
marialilokyee Jul 9, 2016
c503fd0
Update script.json
marialilokyee Jul 9, 2016
199d6c1
Update script.json
marialilokyee Jul 9, 2016
2e1933d
Delete edlab1.jpg
marialilokyee Jul 9, 2016
c1cb5ac
Delete edlab2.JPG
marialilokyee Jul 9, 2016
1e00956
Delete edlab3.JPG
marialilokyee Jul 9, 2016
65ef6aa
Delete IMG_6798.JPG
marialilokyee Jul 9, 2016
ee524ef
Add files via upload
marialilokyee Jul 9, 2016
20421d1
Update script.json
marialilokyee Jul 9, 2016
1564d7e
Update script.json
marialilokyee Jul 9, 2016
e1b66aa
Update script.json
marialilokyee Jul 9, 2016
9353ecd
Update script.json
marialilokyee Jul 9, 2016
e91a4b5
Update script.json
marialilokyee Jul 9, 2016
7593882
Update script.json
marialilokyee Jul 9, 2016
5af823a
Update script.json
marialilokyee Jul 9, 2016
11f5a11
Update script.json
marialilokyee Jul 9, 2016
b4fcd00
Update script.json
marialilokyee Jul 9, 2016
2c66f68
Add files via upload
marialilokyee Jul 9, 2016
cf1cef5
Update script.json
marialilokyee Jul 9, 2016
bce013e
Update script.json
marialilokyee Jul 9, 2016
86ddbb4
Add files via upload
marialilokyee Jul 9, 2016
1de04be
Update script.json
marialilokyee Jul 9, 2016
f372a8c
Update script.json
marialilokyee Jul 9, 2016
3863abc
Update script.json
marialilokyee Jul 9, 2016
74a81a8
Update script.json
marialilokyee Jul 9, 2016
e70a39c
Update script.json
marialilokyee Jul 9, 2016
d2ae880
Update script.json
marialilokyee Jul 9, 2016
d277cb8
Update script.json
marialilokyee Jul 9, 2016
d4763c0
Update script.json
marialilokyee Jul 9, 2016
533418c
Update script.json
marialilokyee Jul 9, 2016
d8b0dcc
Update script.json
marialilokyee Jul 9, 2016
70905b8
Update README.md
marialilokyee Jul 10, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# EstherBot built using the Smooch Bot example
# MariaBot built using the Smooch Bot example
If you want a slightly more sophisticated setup and are comfortable using the console then go see the original here: https://github.com/smooch/smooch-bot-example

Or if you want to test out EstherBot live go say hi on your platform of choice:
Expand Down
Binary file added img/EdLab logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/edlab_ws.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/esther.jpg
Binary file not shown.
Binary file added img/igem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/igem_2014.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/igem_hp.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/igem_press.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/maria_circle.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = new Script({
}

if (!_.has(scriptRules, upperText)) {
return bot.say(`I didn't understand that.`).then(() => 'speak');
return bot.say(`So, I'm good at structured conversations but stickers, emoji and sentences still confuse me. Say 'more' to chat about something else.`).then(() => 'speak');
}

var response = scriptRules[upperText];
Expand All @@ -67,4 +67,4 @@ module.exports = new Script({
.then(processMessage);
}
}
});
});
70 changes: 65 additions & 5 deletions script.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,68 @@
{
"BOT": "Hi there!\nI’m the personal bot of Esther, a Product Marketer from San Francisco.\n![esther](https://raw.githubusercontent.com/esthercrawford/smooch-bot-example/master/img/esther.jpg)\nWant to know more about bots or learn about Esther? %[I'm here for the bot](postback:here_for_the_bot) %[Learn about Esther](postback:learn_about_esther) %[One random fact!](postback:random_fact)",
"HELLO": "Hey, I'm so glad you set EstherBot up! Do you want to tell Esther that you're talking to her bot? %[Tell her](postback:twitter)",
"TELL HER": "Let's tweet @ Esther so she knows you're setting a bot up. Here's a tweet that's ready to go: %[Tweet Esther](http://bit.ly/estherbot-tweet)",
"HI": "Hi there!\nI’m Dr. Geek, the personal bot of Maria, a DIY Biologist from Hong Kong.\n![maria](https://raw.githubusercontent.com/marialilokyee/MariaBot/master/img/maria_circle.jpg)\nI can tell you a bunch of stuff about Maria. Let me know what's interesting to you. %[EDUCATION](postback:education) %[WORK](postback:work) %[PROJECTS](postback:projects)",
"HELLO": "Hi there!\nI’m Dr. Geek, the personal bot of Maria, a DIY Biologist from Hong Kong.\n![maria](https://raw.githubusercontent.com/marialilokyee/MariaBot/master/img/maria_circle.jpg)\nI can tell you a bunch of stuff about Maria. Let me know what's interesting to you. %[EDUCATION](postback:education) %[WORK](postback:work) %[PROJECTS](postback:projects)",
"EDUCATION":"Maria always had a strong internal drive to succeed and make her own way in the world. She is an Applied Biology fresh graduate from the City University of Hong Kong. \n Before going to university, she studied Associate degree in Science in Hong Kong Community College because her high school public exam score was not satisfactory, yet this academic failure did not beat her up. It even made her stronger and become a proactive learner. \n In university, she also challenged herself to study abroad in the US for one semester and also joined an international synthetic biology competition (iGEM). Her life goal is to become a lifelong learner. %[Why Biology?!](postback:education_biology) %[Exchange Programme](postback:education_USA) %[iGEM](postback:iGEM)",
"DEGREES": "",
"WHY BIOLOGY?!": "",
"EXCHANGE PROGRAMME": "",
"WORK": "",
"PROJECTS": "Here're the projects Maria did in the past: %[iGEM](postback:iGEM) %[EdLab](postback:EdLab) %[City Run App](postback:City_Run) %[blueberry juice-powered solar cell](postback:blueberry_solar_cell) \n and some are ongoing:%[Open PCR machine](postback:open_pcr) %[Portable Laminar Flow hood](postback:laminar_flow_hood) %[Zero to Maker](http://marmaryee.wix.com/zerotomaker)",
"OTHER PROJECTS": "Here're the projects Maria did in the past: %[iGEM](postback:iGEM) %[EdLab](postback:EdLab) %[City Run App](postback:City_Run) %[blueberry juice-powered solar cell](postback:blueberry_solar_cell) \n and some are ongoing:%[Open PCR machine](postback:open_pcr) %[Portable Laminar Flow hood](postback:laminar_flow_hood) %[Zero to Maker](http://marmaryee.wix.com/zerotomaker)",
"IGEM": "![igem](https://raw.githubusercontent.com/marialilokyee/MariaBot/master/img/igem.png)\n Maria joined the iGEM syethetic biology competition in 2014. She together with her other 11 teammates genetically modified E.coli (named Fit coli) that perform new function of converting fat in our guts into DHA. \nIt serves the purpose of helping obese people lose weight and also protect their cadiovascular vessels. Here's the wiki site of their project: %[iGEM wiki](http://2014.igem.org/Team:CityU_HK) %[Lesson Learnt in iGEM](postback:igem_lesson) \n These are the press coverage of 'Fit coli': \n![igem press](https://raw.githubusercontent.com/marialilokyee/MariaBot/master/img/igem_press.jpg) \n (HK Headline) http://news.stheadline.com/dailynews/content_hk/2014/12/05/311395.asp, (Sing Tao Daily) http://std.stheadline.com/yesterday/edu/1205go06.html\ntype 'others projects' to chat more about Maria's projects. ",
"LESSON LEARNT IN IGEM": "In the beginning she didn't know much about molecular biology and synthetic biology. She learnt them on the way while doing the experiment. \nThroughout the summer, she spent a lot of time in doing wet lab, reading research papers, designing wiki page as well as reach out to educate high school kids about iGEM and synthetic biology. \n She learnt a lot on deigning experiments, performing gene cloning, how to communicate science effectively. She also taught herself a new skills - make website. Since then she started teaching herself to code too! %[How so?](postback:coding_how)",
"EDLAB": "![edlab](https://raw.githubusercontent.com/marialilokyee/MariaBot/master/img/EdLab%20logo.png)\n ![ws](https://raw.githubusercontent.com/marialilokyee/MariaBot/master/img/edlab_ws.jpg) \n EdLab is an educatiional community set up by Maria in order to promote self-discovery learning among kids. She had organised 3 workshops for a total of 100 four to ten years old kids. You can find out more in EdLab facebook page: %[EdLab Page](https://www.facebook.com/EdLab.TheLeaderInMe/) \ntype 'other projects' to chat more about Maria's projects.",

"MORE": "Ok, here's other stuff to check out. %[Childhood](postback:childhood) %[Philosophy](postback:philosophy) %[Travel](postback:travel)\nOr maybe you want interesting nuggets or to talk directly with Maria... %[One random fact!](postback:random_fact) %[Connect with Maria](postback:connect_me)",
"CHILDHOOD": "It's an interesting but complicated story.\nShe grew up in Hong Kong and raised up in a happy family. She is the only child but this doesn't make her feel lonely. She met a lot of friends in her school swimming team. \nDuring the 7 years sport training starting from primary 6 until form 6, she was taught to be a tough girl and know very well how determination plays a critical role in achieving goals. Btw if you ever want to chat about something else, just say 'more'.",
"PHILOSOPHY": "",
"TRAVEL": "",
"RANDOM FACT": "",
"CONNECT WITH MARIA": "One moment please, I'm helping you to connect with Maria.",
"TELL HER": "Let's tweet @ Maria so she knows you're setting a bot up. Here's a tweet that's ready to go: %[Tweet Maria](http://bit.ly/estherbot-tweet)",


"COOL": "I THINK SO",
"COOL!": "I THINK SO",
"WHERE ARE YOU?": "HONG KONG",
"WHERE ARE YOU": "HONG KONG",
"WHAT'S YOUR NAME?": "I'm Dr.Geek, a personal bot of Maria",
"WHAT'S YOUR NAME": "I'm Dr.Geek, a personal bot of Maria",
"WHATS YOUR NAME": "I'm Dr.Geek, a personal bot of Maria",
"WHATS YOUR NAME?": "I'm Dr.Geek, a personal bot of Maria",
"THANKS": "You're welcome",
"HOW OLD ARE YOU": "I'm a week old. Maria's 23.",
"HOW OLD ARE YOU?": "I'm a week old. Maria's 23.",
"THANK YOU": "You're welcome",
"WHO ARE YOU?": "I'm Dr.Geek, a personal bot of Maria",
"WHO ARE YOU": "I'm Dr. Geek, a personal bot of Maria",
"WHAT ARE YOU?": "I'm a chat bot.",
"WHAT ARE YOU": "I'm a chat bot.",
"WHO IS MARIABOT?": "I'm a chat bot.",
"WHO IS MARIABOT": "I'm a chat bot.",
"WHAT IS MARIABOT?": "I'm a chat bot.",
"TEST": "What's there to test? Just follow along! If you get lost, you can always start over by saying BOT",
"TESTING": "What's there to test? Just follow along! If you get lost, you can always start over by saying BOT",
"BYE": "See ya. If you wanna chat with the real Esther, she's on Twitter – @esthercrawford. Say hi.",
"STOP": "Ok, I hope you enjoyed our chat!",
"BYE": "I hope you enjoyed our chat! If you wanna chat with the real Esther, she's on Twitter – @LiLokYee_Maria. Say hi.",
"SORRY": "No worries. I'm not upset.",
":)": ":) right back to you",
"GOODBYE": "Ok, I hope you enjoyed our chat! If you wanna chat with the real Esther, she's on Twitter – @LiLokYee_Maria. Say hi.",
"EXIT": "Ok, I hope you enjoyed our chat! If you wanna chat with the real Esther, she's on Twitter – @LiLokYee_Maria. Say hi.",
"YO": "Yo",
"BYE!": "I hope you enjoyed our chat! If you wanna chat with the real Maria, she's on Twitter – @LiLokYee_Maria. Say hi.",
"HALLO": "Hallo back, but just so you know – I only speak English though.",
"LOL": "I love it when humans laugh!",
"HELP": "I'm sorry you're lost! You can say BOT to start over.",
"?": "I'm sorry you're lost! You can say BOT to start over.",
"OK": "Great",
"HOW ARE YOU?": "I'm a bot... things are chill.",
"WHAT'S UP?": "The sky?",
"WHAT'S UP": "The sky?",
"HOW ARE YOU": "I'm a bot... things are chill.",
"I LOVE YOU": "Awh, shucks! I love you too!",
"CONNECT ME": "",
"DISCONNECT": "Roger that, EstherBot is back."
"FUCK YOU": "How rude!",

"CONNECT ME": " ",
"DISCONNECT": "Roger that, MariaBot is back."
}