Skip to content

Instantly share code, notes, and snippets.

@ilgooz
Last active November 13, 2018 19:22
Show Gist options
  • Save ilgooz/a0e1e5802bf004f342fe9f25d26eb284 to your computer and use it in GitHub Desktop.
Save ilgooz/a0e1e5802bf004f342fe9f25d26eb284 to your computer and use it in GitHub Desktop.
Discord Invites Workflow
name: discord-invites
description: |
Send discord invites to your fellows.
curl -d "email=your@email.com" -XPOST http://localhost:3000/webhook
services:
webhook: 4f7891f77a6333787075e95b6d3d73ad50b5d1e9
discord: 1daf16ca98322024824f307a9e11c88e0aba55e2
configs:
sendgridAPIKey: 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
when:
webhook:
event:
request:
execute:
discordExecution:
map:
email: $event.data.data.email
sendgridAPIKey: $configs.sendgridAPIKey
discord: send
@ilgooz
Copy link
Author

ilgooz commented Nov 12, 2018

Check out the blog post to see how this workflow works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment