Skip to content

a Slack bot to interact with Twitter for Customer Support 🐦🤖

License

Notifications You must be signed in to change notification settings

dex1t/sparrowbot

Repository files navigation

Sparrow Bot

a Slack Bot to interact with Twitter for Customer Support 🤖
a.k.a micro Twitter client on Slack.

Features

  • Egosearch
  • Like/Unlike
  • Retweet/Unretweet
  • Reply via Slack Thread

Set up

Deploy

  1. Create Slack application for bot user. Then enable the interactive messages feature and bot feature.
  2. Install Slack application to your Slack team.
  3. Create Twitter application to interact with your Twitter account.
  4. Deploy Sparrowbot to Heroku, then set Slack and Twitter Token to Heroku config variables.
  5. Set https://your-domain.herokuapp.com/oauth to redirect url on your Slack App oauth setting.
  6. Set https://your-domain.herokuapp.com/slack/receive to request url on your Slack App interactive message setting.
  7. Authorize your account on https://your-app.herokuapp.com/login/ .

Development

Env

Set Slack and Twitter tokens to .env, and load it by direnv.

$ cp .env.example .env
$ vim .env # set your tokens

Tunneling

Slack requires callback url with https to use the interactive message buttons. Use localtunnel.me (or ngrock) on development.

$ lt -p 8080 -s sparrowbot-dev
$ nf start

About

a Slack bot to interact with Twitter for Customer Support 🐦🤖

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published