Space Explorer Bot
Space Explorer is simple Messenger chat bot that uses NASA's API to get the data and images about the space.
It's created for fun and also as a showcase for Claudia Bot Builder, node.js library for creating chat bots for various platform and deploying them on AWS Lambda.
Watch the video
Short video is available on Vimeo.
Try it live
Scan the code:
Or go to https://m.me/space.explorer.bot.
How to run and deploy it
- Create a new bot page in Facebook and a messenger app, as explained in the Facebook Messenger Getting Started Guide.
Clone the repository and run:
claudiaas a global utility, if you do not have it already:
npm install claudia -g
Create a new bot in AWS. If you changed the name of bot.js file, change the
--api-moduleargument below accordingly.
claudia create --region us-east-1 --api-module bot
Configure Facebook Bot with a following command and follow the instructions:
claudia update --configure-fb-bot --configure-app
--configure-fb-botwill prompt you for FB page access token and FB app secret (for message validation) and it'll print out your webhook URL;
--configure-appwill prompt you for the Nasa API key (Check https://github.com/stojanovic/space-explorer-bot/blob/master/bot.js#L181);
And that's it :)
Full instructions for Claudia Bot Builder are available in Getting started with Claudia Bot Builder guide.
The MIT License (MIT)
Copyright (c) 2016 Slobodan Stojanović
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.