Navigate to: Twitter via IFTTT, Twitter via Zapier, Reddit or GitHub.
You just posted a video. You want everyone on your server to know this, eh?
- Go to the IFTTT website and create an account (if you don't already have one).
-
Find the Discord channel in which you would like to send YouTube videos.
-
In the settings for the channel, find the "Integrations" option and look for the "Webhooks" tab. If you have no webhooks set up for that channel, then click "Create Webhook." Otherwise, click "View Webhooks" to open the webhook pane. From there, click "New Webhook" to create your webhook.
- You can name the webhook whatever you want and give it any image; for this tutorial, we override them later. Please keep track of the URL; we'll need it later.
- Head to My Applets on IFTTT to start creating your new applet
- Scroll down, and under the "My Applets" list, you should see the "Create" card. Keep in mind if you're on the free plan, you only have access to the maximum of 3 applets. You'll need to review your current applets and make some choices if this applies to you.
- Click "Add" next to the "If This" button
- (Step 1/5) Search for "YouTube" in the "Search services" box and select it when it pops up
- (Step 2/5) Select the "New public video uploaded by you" trigger. You can only connect YouTube channels and brand accounts that are accessible by you. Not someone you follow, such as MrBeast. Proceed to link your YouTube channel.
- (Step 3/5) Click "Add" next to the "Then That" button
- (Step 4/5) Search for "Webhooks" in the "Search services" box and select it when it pops up
- (Step 5/5) Select the "Make a web request" trigger (the only action)
Complete action fields (Image too big, so I'm not adding it to this gist)
- Paste your webhook URL in the "URL" box.
- Select "POST" as the request method.
- Select
application/json
as the Content Type - Paste the following json body below in the "Body" textbox. Edit it as you wish. Click "Add ingredient" to see the different parameters you can use.
{
"username":"IFTTT YouTube Test",
"avatar_url":"https://blog.eu.playstation.com/files/avatars/avatar_4364447.jpg",
"content":"**{{AuthorName}}** uploaded **{{Title}}** at {{CreatedAt}}: {{Url}}"
}
If you wish to send the message as an embed, use this format. Edit it as you want to.
{
"embeds":[
{
"title":"{{Title}}",
"color":16711680,
"url":"{{Url}}",
"fields":[
{
"name":"<<Link>>",
"value":"{{Url}}",
"inline":false
},
{
"name":"<<Published>>",
"value":"{{CreatedAt}}",
"inline":false
},
{
"name":"<<Author>>",
"value":"{{AuthorName}}",
"inline":false
}
]
}
]
}
Now what you have to do is 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 logs. The "Check now" button updates the applet in case it is not automatically updated. Overall, use it for troubleshooting. It should be the first thing you use if your applet is having issues.
Suppose you have errors that you cannot solve after googling or looking through IFTTT support forums. In that case, contact anthony#8577 on Discord. Preferably via my Discord server.
How about if I use "New public video from subscriptions" instead, does it works with other YouTube channels?