Skip to content

An IFTTT(if this, then that)-based Webtask Slack bot that sends a message to the general channel of a Slack group when a user tweets, retweets or replies to a tweet in Twitter.

Notifications You must be signed in to change notification settings

philipszdavido/auth0_webtask_hack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auth0_webtask_hack

An IFTTT(if this, then that)-based Webtask Slack bot that sends a message to the general channel of a Slack group when a user tweets, retweets or replies to a tweet in Twitter.

Technologies

  1. Webtask.io
  2. Node.js
  3. Slack bot
  4. Twitter
  5. IFTTT

App Overview

IFTTT sends Twitter triggers[tweets, RT and replies] to ===> Webtask.io URL, it sends the payload to ===> Slack group channel.

Requirements

Usage

  1. Create a Twitter account if you don't have one.

  2. Create a Slack group and add a Slack bot to the group.

  3. Install the Webtask.io CLI utility wt-cli, if you don't have it installed:

     npm i wt-cli -g
     wt init
    
  4. Clone this repo to your machine, by running this command:

     git clone https://github.com/philipszdavido/auth0_webtask_hack
    
  5. Move into the directory from your terminal:

     cd auth0_webtask_hack
    
  6. Install the dependencies:

     npm install
    
  7. To deploy alongside your Slack bot token, run:

     wt create --secret TOKEN=<YOUR_SLACK_BOT_TOKEN_HERE> webtask.js
    
  8. Create an IFTTT Twitter (tweet, retweet, and replies) trigger and link the webhook to the URL generated from the above command.

How to create the IFTTT Twitter trigger

To create the IFTTT Twitter trigger, follow these steps:

  1. Log in to your ITFFF.com account, if you don't have accout there just sign up. Also, make sure you link your Twitter account.

  2. click on New Applet button. If you don't see it, go to this link: https://itfff.com/create

  3. on the screen that shows, click on ✚this of this if ✚this then that.

  4. on the Choose a service window, click on the Twitter button

  5. Select New tweet by you This Trigger fires every time you post a new tweet. on the Choose trigger window that shows up.

  6. Now on the Complete trigger fields window, check the retweets and @replies so that you can also get the trigger when you RT or replies to a tweet. click on Create trigger button when you are done.

  7. click on ✚that of if then ✚that.

  8. Select Webhooks on the Choose action service window. You can type Webh in the search text to fasten the process.

  9. click on Make a web request This action will make a web request to a publicly accessible URL. NOTE: Requests may be rate limited. on the next Choose action window that shows up.

  10. On the Complete action fields window, fill in the form with these value:

     * URL:https://wt-dbafebf712fa816299231d2763fd292e-0.run.webtask.io/auth0_webtask.io_hack?text={{Text}}&username={{UserName}}&tweet_link={{LinkToTweet}}&created={{CreatedAt}}&tweet={{TweetEmbedCode}}
     * Method: GET 
    
  11. click on create action button after filling in the fields.

  12. Click on the Finish button on the next Review and finish window.

  13. Hooray!! We now have an ITFFF Twitter tweet, RT and @replies trigger up and running.

  14. Post a tweet to test.

IFTTT Twitter/Slack webtask bot in action

Contribute

  1. Fork this repository
  2. Clone it to your local machine
  3. Create a branch for the feature you want to implement
  4. Push your changes to your repository
  5. Submit a pull request

Support

If you are having issues, please let me know. Mail me at: kurtwanger40@gmail.com

About

An IFTTT(if this, then that)-based Webtask Slack bot that sends a message to the general channel of a Slack group when a user tweets, retweets or replies to a tweet in Twitter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published