stojanovic / space-explorer-bot

A small FB Messenger chat bot using NASA API and Claudia Bot Builder.

Home Page:https://m.me/space-explorer-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

Messenger code

Or go to https://m.me/space.explorer.bot.

How to run and deploy it

Prerequests:

  • Create a new bot page in Facebook and a messenger app, as explained in the Facebook Messenger Getting Started Guide.

Steps:

  1. Clone the repository and run:

    npm init
    
  2. Install claudia as a global utility, if you do not have it already:

    npm install claudia -g
    
  3. Create a new bot in AWS. If you changed the name of bot.js file, change the --api-module argument below accordingly.

    claudia create --region us-east-1 --api-module bot
    
  4. Configure Facebook Bot with a following command and follow the instructions:

    claudia update --configure-fb-bot --configure-app
    

And that's it :)

Full instructions for Claudia Bot Builder are available in Getting started with Claudia Bot Builder guide.

License

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.

About

A small FB Messenger chat bot using NASA API and Claudia Bot Builder.

https://m.me/space-explorer-bot


Languages

Language:JavaScript 100.0%