A simple git webhook event notification for facebook messenger.
- Github Webhook
- Gitlab Webhook
- Bitbucket Webhook
-
install pm2 package
npm install pm2 -g
-
create .env file and type
disable otp password in facebook login
EMAIL: "[email protected]" //fb email
PASSWORD: "facebookpassword" //fb password
TITLE: Chatbot Name //chatbot name
WEBHOOK_PORT="3005" //preferred port
- Start pm2 process and then save
pm2 start webhook.js --name webhook-name
&pm2 save
- Go to webhook Settings->Integrations->URL
http://yourserverip:port/integrate/webhook/messengerGroupChatID
- Group Chat ID shown on the parameter of messenger.com when you select the specific groupchat.
sample
http://182.232.34.23:3005/integrate/webhook/1818601588228287
or
http://gitmessengerchatbot.com:3005/integrate/webhook/1818601588228287
- Try it yourself 😃