https://github.com/yukihirai0505/tweet2slack
:kissing_heart: Notify tweets searched by some keywords to Slack channel.
https://github.com/yukihirai0505/tweet2slack
clasp gas googleappsscript slack twitter
Last synced: 3 months ago
JSON representation
:kissing_heart: Notify tweets searched by some keywords to Slack channel.
- Host: GitHub
- URL: https://github.com/yukihirai0505/tweet2slack
- Owner: yukihirai0505
- License: mit
- Created: 2018-10-29T08:08:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T06:24:09.000Z (over 6 years ago)
- Last Synced: 2025-01-13T13:49:11.911Z (5 months ago)
- Topics: clasp, gas, googleappsscript, slack, twitter
- Language: JavaScript
- Homepage:
- Size: 96.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## tweet2slack
Notify tweets searched by some keywords to Slack channel.
This project uses Google Apps Script(clasp).
Setup `Google Apps Script Project ID` in `.clasp.json`
```
{
"scriptId": "<< Google Apps Script Project ID >>",
"rootDir": "dist"
}
```And also keywords `src/const.js`
```
export const keywords = ['word1', 'word2']
```You can change Slack channel to notify message. `src/slack.js`
`#general` to `#your-channel`
```
getSlackAppStore().postMessage('#general', link, {
icon_url: 'https://help.twitter.com/content/dam/help-twitter/twitter-logo.png',
username: 'Twitter bot'
})
```## Get Started
```
$ clasp login
$ yarn
```## Deploy
```
$ yarn deploy
```After deploy, plz setup trigger to start `notify` function every 10 minutes.
## Reference
- [Search Tweets API](https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html)
- [apps-script-starter](https://github.com/labnol/apps-script-starter)
- [clasp](https://github.com/google/clasp)