https://github.com/mandliya/vishesh-bot
A know it all bot!
https://github.com/mandliya/vishesh-bot
Last synced: 4 months ago
JSON representation
A know it all bot!
- Host: GitHub
- URL: https://github.com/mandliya/vishesh-bot
- Owner: mandliya
- Created: 2016-05-02T15:40:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-02T16:05:28.000Z (about 9 years ago)
- Last Synced: 2024-12-29T19:46:14.747Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.36 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
A simple bot to work with the new [Facebook Messenger API](https://messengerplatform.fb.com/), using [Wit.ai](https://wit.ai).
It right now tells you weather and gives you an inspiring quote. It is still learning.Try things like "How is the weather in Mumbai?" or "Tell me a management quote?"
Next feature: Generic FB message for stocks!
Next feature2: Reminders!### Getting Started
- [Wit.ai bot setup](https://wit.ai/docs/quickstart)
- [Heroku setup](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction)
- [Mesenger setup](https://developers.facebook.com/docs/messenger-platform/quickstart)Some steps from Messenger Setup like Webhooks, you have to configure Heroku first.
### Install dependencies
```sh
npm install
```### Structure
```sh
├── Procfile # tells to heroku what to do
├── bot.js # our bot actions
├── fb-connect.js # connection to facebook uses FB_PAGE_TOKEN
├── index.js # express layer
├── parser.js # our message parser
├── sessions.js # find our define our sessionId
└── settings.js # exports our environmet variables
```### Define variables on Heroku
In order to work with Facebook and Wit Authentication, you have to create those environment variables on Heroku.
```sh
WIT_TOKEN
FB_PAGE_ID
FB_PAGE_TOKEN
FB_VERIFY_TOKEN
```### Link and push to heroku
```sh
heroku create
git push heroku master
```### License
This software is free and open source, distributed under the The MIT License. So feel free to use this without linking back to me or using a disclaimer.
Initial bot tutorial and set up is using [@willian_justen](https://twitter.com/willian_justen) bot tutorial.