Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scraly/ncis-bot-messenger
https://github.com/scraly/ncis-bot-messenger
facebook facebook-messenger-bot heroku java messenger-bot
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/scraly/ncis-bot-messenger
- Owner: scraly
- Created: 2017-01-03T08:26:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-03T13:56:24.000Z (about 8 years ago)
- Last Synced: 2024-11-06T07:38:48.307Z (2 months ago)
- Topics: facebook, facebook-messenger-bot, heroku, java, messenger-bot
- Language: JavaScript
- Size: 1.26 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ncis-bot-messenger
Ce bot messenger envoie une règle de gibbs (de la série NCIS) lorsque l'on envoie "gibbs" à la page Facebook reliée.
### Installation sur Heroku
#### Install Heroku
```$ sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"```
```$ curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -```
```$ sudo apt-get update```
```$ sudo apt-get install heroku```
#### Verify your installation
```$ heroku --version```
```heroku-cli/5.6.10-249d061 (linux-386) go1.7.4```
#### Clone this repo
```git clone https://github.com/scraly/ncis-bot-messenger.git```
#### Facebook Page
Le bot messenger doit être relié à une page Facebook donc :
1. Go to https://developers.facebook.com/apps pour créer votre application Facebook
2. Activer messenger
3. Webhooks
4. Relier l'app à la page et générer un token
5. Remplacer le token dans index.js
#### Commit and Push to heroku instance
```$ git add .```
```$ git commit -m "init"```
```$ heroku create```
```$ git push heroku master```
#### Relier le bot à la page
```$ curl -X POST "https://graph.facebook.com/v2.7/me/subscribed_apps?access_token="```
### Preview
![alt text](https://github.com/scraly/ncis-bot-messenger/blob/master/images/ncis-bot-messenger-result.png "NCIS bot messenger preview")