🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.

Discord Bot

Use this app to interact with the Discord API using a bot in your account

Go to site

Integrate the Discord Bot API with the Twitch API

Setup the Discord Bot API trigger to run a workflow which integrates with the Twitch API. Pipedream's integration platform allows you to integrate Discord Bot and Twitch remarkably fast. Free for developers.

Connect Discord Bot

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    discord_bot: {
      type: "app",
      app: "discord_bot",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://discord.com/api/users/@me`,
      headers: {
        "Authorization": `Bot ${this.discord_bot.$auth.bot_token}`,
      },
    })
  },
})

Connect Twitch

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    twitch: {
      type: "app",
      app: "twitch",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.twitch.tv/helix/users`,
      headers: {
        Authorization: `Bearer ${this.twitch.$auth.oauth_access_token}`,
        "Client-ID": `${this.twitch.$auth.oauth_client_id}`,
      },
    })
  },
})