Skip to content

Instantly share code, notes, and snippets.

@Kami
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kami/7675287d81365cc8dac4 to your computer and use it in GitHub Desktop.
Save Kami/7675287d81365cc8dac4 to your computer and use it in GitHub Desktop.
---
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