Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonchurch/whysguy
5 Why's Bot
https://github.com/jonchurch/whysguy
Last synced: 22 days ago
JSON representation
5 Why's Bot
- Host: GitHub
- URL: https://github.com/jonchurch/whysguy
- Owner: jonchurch
- Created: 2017-06-01T03:37:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-01T04:16:39.000Z (over 7 years ago)
- Last Synced: 2024-10-06T14:41:36.444Z (3 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
f# Botkit Starter Kit for Facebook
This repo contains everything you need to get started building a bot with Botkit and Botkit Studio!
[Botkit Studio](https://studio.botkit.ai/) is a set tools that adds capabilities
to the open source Botkit library by offering hosted GUI interfaces for script
management and action trigger definition. Botkit Studio is built by the company
that created and maintains the open source Botkit library, [Howdy.](https://howdy.ai)While Botkit Studio is *not required* to build a bot using Botkit, we highly recommend it as your bot will be easier to manage, customize and extend.
### Instant Start
[Remix this project on Gomix](https://gomix.com/#!/project/botkit-facebook)
[Deploy to Heroku](https://heroku.com/deploy?template=https://github.com/howdyai/botkit-starter-facebook/master)
### Get Started
Clone this repository:
`git clone https://github.com/howdyai/botkit-starter-facebook.git`
Install dependencies, including [Botkit](https://github.com/howdyai/botkit):
```
cd botkit-starter-facebook
npm install
```Get a Facebook access tokens [as described here](https://github.com/howdyai/botkit/blob/master/readme-facebook.md#getting-started)
Get a Botkit Studio token [from your Botkit developer account](https://studio.botkit.ai/)
Run your bot from the command line with your new tokens:
`page_token= verify_token= studio_token= node .`
Facebook requires your application be available at an SSL-enabled endpoint. To expose an endpoint during development, we recommend using [localtunnel.me](http://localtunnel.me) or [ngrok](http://ngrok.io), either of which can be used to temporarily expose your bot to Facebook. Once stable and published to the real internet, use nginx or another web server to provide an SSL-powered front end to your bot application.
Continue your journey to becoming a champion botmaster by [reading the Botkit Studio SDK documentation here.](https://github.com/howdyai/botkit/readme-studio.md)
### Extend This Bot
This repo is designed to provide developers a robust starting point for building a custom bot. Included in the code are a set of sample bot "skills" that illustrate various aspects of the Botkit SDK features. Once you are familiar with how Botkit works, you may safely delete all of the files in the `skills/` subfolder.
Developers will build custom features as modules that live in the `skills/` folder. The main bot application will automatically include any files placed there.
A skill module should be in the format:
```
module.exports = function(controller) {// add event handlers to controller
// such as hears handlers that match triggers defined in code
// or controller.studio.before, validate, and after which tie into triggers
// defined in the Botkit Studio UI.}
```