fabiandev / apiai-messenger-twitter-bot

A Facebook Messenger bot that gets you some data from Twitter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebook Messenger Twitter Bot

This bot gets trending topics and tweets based on your location.

Quickstart

$ git clone https://github.com/fabiandev/apiai-messenger-twitter-bot.git
$ cd apiai-messenger-twitter-bot
$ cp .env.example .env
$ yarn

Tip: You can use npm instead of yarn.

  1. Import intents and entities from data/apiai.zip to api.ai
  2. Create a Facebook app and assign it to a page
  3. Add the verify token from api.ai and the webhook URL (https://bot.example.tld/webhook) to your Facebook app and select the events messages and messaging_postbacks
  4. Fill in your credentials in .env
  5. Run yarn start
  6. Write with your bot through the Facebook page

Deployment

This app supports deployment to OpenShift out-of-the-box:

  1. Create an app for Node.js
  2. Add environment variables from .env
  3. Force-push master to the git remote of your OpenShift app

Live Preview

The bot was not submitted for approval yet. If you want to try it out, please leave me a message and I will add you as a tester. Once you have been added, scan the code below in the Facebook Messenger app:

Icon "Robot, twitter icon" by Sneh Roy (Source)

Credits

About

A Facebook Messenger bot that gets you some data from Twitter.

License:MIT License


Languages

Language:JavaScript 100.0%