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.
IFTTT sends Twitter
triggers[tweets, RT and replies] to ===> Webtask.io
URL, it sends the payload to ===> Slack
group channel.
-
Create a Twitter account if you don't have one.
-
Install the Webtask.io CLI utility
wt-cli
, if you don't have it installed:npm i wt-cli -g wt init
-
Clone this repo to your machine, by running this command:
git clone https://github.com/philipszdavido/auth0_webtask_hack
-
Move into the directory from your terminal:
cd auth0_webtask_hack
-
Install the dependencies:
npm install
-
To deploy alongside your Slack bot token, run:
wt create --secret TOKEN=<YOUR_SLACK_BOT_TOKEN_HERE> webtask.js
-
Create an IFTTT Twitter (tweet, retweet, and replies) trigger and link the webhook to the URL generated from the above command.
To create the IFTTT Twitter
trigger, follow these steps:
-
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.
-
click on
New Applet
button. If you don't see it, go to this link: https://itfff.com/create -
on the screen that shows, click on
✚this
of thisif ✚this then that
. -
on the
Choose a service
window, click on theTwitter
button -
Select
New tweet by you This Trigger fires every time you post a new tweet.
on theChoose trigger
window that shows up. -
Now on the
Complete trigger fields
window, check theretweets
and@replies
so that you can also get the trigger when you RT or replies to a tweet. click onCreate trigger
button when you are done. -
click on
✚that
ofif then ✚that
. -
Select
Webhooks
on theChoose action service
window. You can typeWebh
in the search text to fasten the process. -
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 nextChoose action
window that shows up. -
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
-
click on
create action
button after filling in the fields. -
Click on the
Finish
button on the nextReview and finish window
. -
Hooray!! We now have an
ITFFF Twitter tweet, RT and @replies
trigger up and running. -
Post a tweet to test.
- Fork this repository
- Clone it to your local machine
- Create a branch for the feature you want to implement
- Push your changes to your repository
- Submit a pull request
- Issue Tracker: https://github.com/philipszdavido/auth0_webtask_hack/issues
- Source Code: https://github.com/philipszdavido/auth0_webtask_hack
If you are having issues, please let me know. Mail me at: kurtwanger40@gmail.com