Create a gist now

Instantly share code, notes, and snippets.

---
name: "send_to_slack_on_matched_tweet"
description: "Relay Tweets to the Slack channel."
enabled: true
trigger:
type: "twitter.matched_tweet"
parameters: {}
action:
ref: "core.http"
parameters:
url: "https://hooks.slack.com/services/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XXX"
headers: "content-type=application/x-www-form-urlencoded"
body: "payload={\"username\": \"twitter-relay\", \"icon_emoji\": \":panda_face:\", \"text\": \"@{{trigger.user.screen_name}} tweeted on {{trigger.created_at}}: {{trigger.text}} - {{trigger.url}}\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment