Skip to content

😘 Notify tweets searched by some keywords to Slack channel.

License

Notifications You must be signed in to change notification settings

yukihirai0505/tweet2slack

Repository files navigation

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

About

😘 Notify tweets searched by some keywords to Slack channel.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published