michaeljymsgutierrez / git-messenger-webhook Goto Github PK
View Code? Open in Web Editor NEWA simple git webhook event notification for facebook messenger.
License: MIT License
A simple git webhook event notification for facebook messenger.
License: MIT License
Implement Heroku support
Using just credentials with the facebook-chat-api
seem to have stopped working at some point, throwing the following error into the PM2 error-logs
- info login Logging in...
- ERR! login Wrong username/password.
- { error: 'Wrong username/password.' }
git-messenger-webhook/webhook.js
Lines 30 to 34 in 69551d2
A workaround is exporting the cookies when logged in(only the table of the cookie), and reading that
const fs = require('fs');
const credentials = { appState : JSON.parse(fs.readFileSync('appstate.json', 'utf8')) };
(In the above example, appstate.json
containing)
[{"domain":".facebook.com","expirationDate":...
and passing that to login
login(credentials,
(err, api) =>
facebook-chat-api seem to have been deprecated, with a new API existing for chatbots by facebook, would be cool if this supported that instead, or at least updated to work with the suggested workaround.
Test and implement on Bitbucket
Instead of using dotenv
module and .env
file from .env.sample
.
Implement env.sample.js
as default
environment file which will use env.js
.
For further clarification, comment down
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.