Skip to content

Instantly share code, notes, and snippets.

@AlexBarbulescu
Created January 1, 2017 10:17
Show Gist options
  • Save AlexBarbulescu/de566b99b037da7c9b2303bfaeb4f9c1 to your computer and use it in GitHub Desktop.
Save AlexBarbulescu/de566b99b037da7c9b2303bfaeb4f9c1 to your computer and use it in GitHub Desktop.
Another webhook tutorial (YouTube to Discord via IFTTT)

Navigate to: Twitter via IFTTT, Twitter via Zapier or GitHub.

YouTube to Discord via IFTTT and webhook

You just posted a video. You want everyone in your server to know this, eh?

I'll just start from Step 3. You know where Step 1 and Step 2 is, eh?

Step 1 - Register on IFTTT

  1. Go to https://ifttt.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets.

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

  3. You can name the webhook whatever you want, and give it any image; for this tutorial we override them later anyway. Keep track of the URL; we'll need it later.

Step 3 - Make an IF recipe

  1. "My recipes"
  2. "Create a recipe"
  3. Press that underlined huge "this".
  4. (Step 1/7) Search for "YouTube" in the "Search channels" box. Click on it. If it needs you to connect YouTube channel (only first time), just click it, log into Google, and authorize it.
  5. (Step 2/7) "New public video uploaded by you". Please note that it only works on you, not someone you like (For example, Keemstar).
  6. (Step 3/7) Just click "Create trigger".
  7. Press that underlined huge "that".
  8. (Step 4/7) Search for "Maker" in the "Search channels" box. Click on it. Again, it is called Maker, not "http request" or such thing!
  9. (Step 5/7) You only have 1 choice.
  10. (Step 6/7) Here's the important part.

Step 4 - Setup the webhook

Screen Shot 2016-10-23 at 8.00.52 PM.png

  1. Select "Post" in method, and "application/json" in content type.
  2. Paste your webhook URL in the URL box.
  3. Paste the following stuff. Edit it if you want.
{
  "username":"IFTTT YouTube Test",
  "avatar_url":"https://blog.eu.playstation.com/files/avatars/avatar_4364447.jpg",
  "content":"**{{AuthorName}}** uploaded **{{Title}}** at {{CreatedAt}}: {{Url}}"
}

Step 5 - Profit

Now what you have to do is just click "Create Action". It will start to run immediately. You can shut it down using the power button. If there's any error, it'll appear in the log. "Check now" button updates the log in case it is not automatically updated (I think).

I did not test it. As "requested" by @eslachance, I have tested it and it should work. If you have any error, do not hesitate to contact austinhuang#1076 on Discord.

Screen Shot 2016-10-24 at 2.59.07 PM.png

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