Slack bot to obtain snapshot of webpage
- Create slack app - https://api.slack.com/apps
- Features > Slash Commands > configure slash commands that bot has to handle, if any
- OAuth & Permissions > Redirect URLs > configure {ngrok url or hosted dns}/auth/slack/callback
- OAuth & Permissions > Scopes > add scopes that app can access
- Event Subscriptions > Enable Events
- Event Subscriptions > Enable Events > Request URL > {ngrok url or hosted dns}/slack/events
- Event Subscriptions > Subscribe to bot events > events that bot should receive
- Nodejs app with slack web and events api
- Puppeteer integration to lauch headless browser and take snapshot of webpage
- ngrok to setup http tunnel between slack events publishing and bot app
- https://slack.dev/node-slack-sdk/events-api
- https://github.com/slackapi/node-slack-events-api/tree/master/examples/greet-and-react
- https://developers.google.com/web/updates/2017/04/headless-chrome#cli
- https://github.com/puppeteer/puppeteer
- https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md
- karma-runner/karma-chrome-launcher#158 (comment)
- https://github.com/slackapi/build-this-bot-workshop