Skip to content

Twitch alerts Discord bot

Your bot posts in Discord as soon as you go live.

Pick a Twitch channel, write the alert, and choose where it goes. When that channel goes live, your bot posts the alert with the stream's title and game and a link to watch. You set it up in BotGhost, the no-code Discord bot maker, and the alert comes from your own bot.

It works on the free plan. Each Twitch channel you follow uses one of your bot's custom events, and free bots get 3.

What happens when a streamer goes live

Tom streams on two evenings, and each time he goes live, an alert lands in your #stream-alerts channel.

  1. 18:00

    Tom starts streaming

    Twitch tells BotGhost the channel is live. BotGhost asks Twitch for the title, game, and viewer count, and every bot watching Tom runs its Twitch Stream Online event.

    Alert posted
  2. 18:03

    The stream drops and Tom restarts it

    Twitch says Tom went live again, but it's less than 5 minutes since the last alert. BotGhost ignores it, so nobody gets pinged twice.

    Skipped
  3. 21:40

    Tom ends the stream

    Twitch alerts only run when a channel goes live. There's no message when a stream ends.

    Nothing posted
  4. Next day, 18:00

    Tom goes live again

    The bot posts a new alert with that stream's title and game.

    Alert posted

What your Twitch alert can show

BotGhost gets the stream's details from Twitch and puts them into your message wherever you've used a variable.

The alert message as you write it, before the bot fills it in
<@&role ID> **{event_twitch_display_name}** is live on Twitch!

Embed author: {event_twitch_display_name}
Embed title: {event_twitch_stream_title}
Playing: {event_twitch_game_name}
Viewers: {event_twitch_viewer_count}
Image: {event_twitch_thumbnail_url}
Button link: {event_twitch_stream_url}
Twitch alert variables and what they turn into
VariableWhat it fills inFor Tom's stream
{event_twitch_display_name}The streamer's name as it shows on TwitchTom
{event_twitch_stream_title}The stream titleBuilding a castle until chat says stop
{event_twitch_game_name}The game or categoryMinecraft
{event_twitch_stream_url}A link to the streamhttps://twitch.tv/tom
{event_twitch_thumbnail_url}A 1920x1080 preview image of the streamImage link

If the streamer hasn't set a title or a category, the alert says Untitled Stream or No Category instead.

How to set up Twitch alerts in Discord

You'll need a BotGhost bot in your server first. After that it's three steps in the dashboard, and you don't need anything from Twitch except the streamer's username.

  1. The Twitch Notifications card under Social Integrations on the Modules page

    1Open Twitch Notifications

    Go to Modules and press Twitch Notifications under Social Integrations. You get a new event with the Twitch Stream Online block and a Send or Edit a Message block already joined up.

  2. The Twitch Stream Online block settings with a Twitch Username box and a Validate Channel button

    2Validate the channel

    Type the streamer's Twitch username, or paste their twitch.tv link, and press Validate Channel. BotGhost checks the channel exists and starts listening for it going live.

  3. In the Send or Edit a Message block
    • Write the alert text, with variables
    • Add an embed with the stream preview
    • Add a link button to the stream
    • Pick the channel it posts in

    3Write the alert and save

    Press Edit message to write it. Under Event Scope, choose one server or all of them, then save the event. The next time that channel goes live, your bot posts the alert.

Twitch alerts by game, with role pings

A Twitch alert is an event, so you can add any block from the Discord bot event builder after the Twitch Stream Online block.

  • Ping a role by putting its mention in the message. Discord only pings it if the role is mentionable, or your bot can mention all roles.
  • Send each game somewhere else. A Comparison Condition checks {event_twitch_game_name}, and each answer gets its own message block and channel.
  • Post in an announcement channel and add Publish a Message, so servers that follow that channel get the alert as well.
  • With Premium, add Change the Bot's Status to set your bot to Streaming with a link to the stream. It stays that way until you change it, since nothing runs when the stream ends.

Twitch alerts on the free plan and with Premium

Twitch alerts don't need Premium. Premium raises how many streamers you can follow and how many servers your bot can join.

FeatureFreePremium
Twitch Stream Online event, with embeds, buttons, and role pingsIncludedIncluded
Twitch channels you can followUp to 3 (one custom event each, shared with your other events)Unlimited
Servers your bot can be in5Unlimited
Streaming status when you go liveNoIncluded

Alerts going out don't count as activity, so a free bot that only posts alerts switches off after 2 days. How free hosting works

Alerts for each streamer in your server

If a few of your members stream, give each of them their own Twitch Stream Online event. Each event has its own message and channel, so you can word each streamer's alert their way and ping their own fans.

  • One event per Twitch channel. Open Twitch Notifications again for each streamer.
  • A free bot runs 3 events in total, so up to 3 streamers if those are its only events.
  • Premium has no event limit, so you can add the whole stream team.

Twitch alerts questions

Got a question that isn't here? Ask in the BotGhost Discord, or read about action events in the docs.

Make a free bot on BotGhost and invite it to your server. Then go to Modules, press Twitch Notifications, type the streamer's Twitch username, and press Validate Channel. Write the alert in the Send or Edit a Message block, pick the channel it posts in, and save the event.

See the three steps

Add Twitch alerts to your Discord server

Make your bot, open Twitch Notifications, and validate the channel. The free plan doesn't need a card.

Set up Twitch alerts for free