Twitch

If stream going live for X, then make a web request

{
  "embeds": [{
    "author": {
      "name": "<<<{{ChannelName}}>>> started streaming!",
      "url": "<<<{{ChannelUrl}}>>>",
      "icon_url": "https://avatar.glue-bot.xyz/twitch/<<<{{ChannelName}}>>>"
    },
    "fields": [
      {
        "name": "Game",
        "value": "**<<<{{Game}}>>>**",
        "inline": true
      },
      {
        "name": "Viewers",
        "value": "<<<{{CurrentViewers}}>>>",
        "inline": true
      }
    ],
    "image": {
      "url": "<<<{{StreamPreview}}>>>"
    },
    "footer": {
      "text": "<<<{{CreatedAt}}>>>",
      "icon_url": "https://i.imgur.com/p4CqTrc.png"
    },
    "color": 9520895
  }]
}

IFTTT Platform filter code

IFTTT Plattform allows to solve them problem with cached preview be showed instead of actual one.

const body: any = {
  embeds: [{
    author: {
      name: `${Trigger.ChannelName} started streaming!`,
      value: Trigger.ChannelUrl,
      icon_url: `https://avatar.glue-bot.xyz/twitch/${Trigger.ChannelName}`
    },
    fields: [{
      name: 'Game',
      value: Trigger.Game || 'No Game',
      inline: true
    }, {
      name: 'Viewers',
      value: Trigger.CurrentViewers,
      inline: true
    }],
    image: {
      url: `${Trigger.StreamPreview}?${Math.floor(Math.random() * 1000000)}`
    },
    timestamp: Meta.triggerTime,
    color: 0x9146ff
  }]
};

MakerWebhooks.makeWebRequest.setBody(JSON.stringify(body));

twitch example