https://github.com/dex1t/sparrowbot
a Slack bot to interact with Twitter for Customer Support :bird::robot:
https://github.com/dex1t/sparrowbot
botkit chatbot slack slackbot twitter
Last synced: 5 months ago
JSON representation
a Slack bot to interact with Twitter for Customer Support :bird::robot:
- Host: GitHub
- URL: https://github.com/dex1t/sparrowbot
- Owner: dex1t
- License: mit
- Created: 2017-04-26T19:43:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T17:39:46.000Z (about 2 years ago)
- Last Synced: 2024-04-14T09:24:40.560Z (about 2 years ago)
- Topics: botkit, chatbot, slack, slackbot, twitter
- Language: JavaScript
- Homepage:
- Size: 1.1 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sparrow Bot
a Slack Bot to interact with Twitter for Customer Support :robot:
a.k.a micro Twitter client on Slack.
## Features
- [x] Egosearch
- [x] Like/Unlike
- [x] Retweet/Unretweet
- [x] Reply via Slack Thread

## Set up
[](https://heroku.com/deploy)
1. Create [Slack application for bot user](https://api.slack.com/apps?new_app=1). Then enable the interactive messages feature and bot feature.
2. Install Slack application to your Slack team.
3. Create [Twitter application](https://apps.twitter.com/app/new) 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](https://api.slack.com/apps/).
6. Set `https://your-domain.herokuapp.com/slack/receive` to request url on your Slack App [interactive message setting](https://api.slack.com/apps/).
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](https://github.com/direnv/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](http://localtunnel.me/) (or ngrock) on development.
```
$ lt -p 8080 -s sparrowbot-dev
$ nf start
```