YouTube Alerts

Post in Discord when the YouTube channels a server follows upload a video or a Short, schedule a live stream, go live, and when the stream ends. Free for every bot.

YouTube Alerts posts in your server when a YouTube channel uploads a video or a Short, schedules a live stream or premiere, or goes live. Each server has its own list of channels. Videos, Shorts, scheduled streams and live streams each have their own message, and you choose which of them a channel posts.

YouTube Alerts is free for every bot, with up to 100 channels in each server. Its commands, events, variables and stored values don't count toward your free limits. One part needs Premium: Bot status, which shows a live channel on the bot's own status.

The YouTube notifications Discord bot page gives a shorter tour.

A YouTube alert in Discord: Fabian posted a new video, Building a bot live, with the video's picture and a Watch on YouTube button

What your members see when a channel uploads

On this page, "channel" on its own means a YouTube channel. A channel in your server is called a Discord channel.

Before you start

You need:

  • Your bot in your Discord server. See Invite Your Bot if it isn't yet.
  • A Discord channel for the alerts, like #new-videos. Your bot needs View Channel, Send Messages and Embed Links there.
  • The YouTube channel's name, its @handle, or a link to it.

You don't need a YouTube account or a YouTube key. YouTube Alerts doesn't need the Message Content intent.

Setup

  1. 1

    Turn on YouTube Alerts

    Open YouTube Alerts in your bot's dashboard and press Enable at the top right. It adds the YouTube Alerts events, the /youtube command, and the custom variables that hold your channels and settings.

    The top of the YouTube Alerts page with Enabled, the server menu set to Ghost Hangout, Reset to Default, Docs and the Get started strip
    • A Enabled shows the module is on. Before you turn it on, this says Enable.
    • B The server menu picks whose channels and settings you're changing.
    • C Reset to Default. See Each server's own settings.
    • D Docs opens this page.
    • E The Get started strip shows your next step. Once setup is done it says You're set.
  2. 2

    Pick your server

    Use the server menu at the top of the page. Each server has its own channels, messages and options.

  3. 3

    Pick a default Discord channel

    Open the Options tab. Under Where alerts go and who they ping, pick a Channel. Every YouTube channel without a Discord channel of its own posts there.

  4. 4

    Add a channel

    Open the Channels tab and type a YouTube name or @handle in the box. Pick the channel from the results. See Add a channel.

  5. 5

    Save

    A bar pops up at the bottom of the page. Press Save Changes. Your bot watches the saved list, so a new channel says Starts after you save until you do.

    The Unsaved changes bar with Save Changes marked
  6. 6

    See it work

    The channel's next upload posts in the Discord channel you picked. Until then, its row says Watching. Videos that were already on YouTube before you saved don't post.

Each server's own settings

YouTube Alerts has no setting that covers every server. When you pick a server, you see and change that server's channels, messages and options. To set up another server, pick it in the same menu. The page remembers the last server you picked in that browser.

Reset to Default puts the picked server's messages and options back to how a new YouTube Alerts module starts. Your channels, each channel's own message, and the Discord channels and roles you picked all stay.

Disable turns YouTube Alerts off for the whole bot and keeps your channels and settings.

Channels

The Channels tab lists every YouTube channel the server follows. Each one is a row. Press a row to open it, and all of its settings show right there.

The Channels tab with the search box, a count of 3 of 100, rows for NASA, GitHub and Google for Developers with their status, Discord channel, switch and Remove, beside a Discord preview of the new video alert

The Channels tab

  • A The three tabs: Channels, Messages and Options.
  • B The search box and Check.
  • C How many channels the server follows, out of 100.
  • D A channel's row: picture, name, status, and a line saying where it posts and who it pings.
  • E The switch turns that channel's alerts on or off.
  • F Remove takes the channel off the list. Press it twice, then save.
  • G The preview shows the alert with sample details.

Add a channel

Type in the box and the page searches YouTube as you type. It starts after two letters and shows up to five channels, each with a picture, a name, its @handle and how many subscribers it has. Click one to add it, or use the arrow keys and press Enter. A channel already on your list says On the list.

The search box with Google for Developers typed in and a list of YouTube channels under it, each with its handle, subscriber count and Add at the right
  • A Type a name or an @handle, or paste a channel link.
  • B The results. Add puts that channel on the list.
  • C Check looks up the exact name, @handle or link you typed.

An @handle or a pasted link is the surest way to find a channel. If the search says it can't look names up right now, paste the channel's link or @handle and press Check.

Nothing is saved or watched until you press Save Changes.

What a row's status means

Status What it means
Starts after you save The channel is new on the page. Save, and your bot starts watching
Watching Saved, and no alert has gone out yet
Live now, 1 h 12 min The channel is live, and for how long
Last alert 3 days ago When your bot last posted for it
Pick a channel The channel has no Discord channel of its own and the server has no default, so nothing can post
A line in red The last alert didn't post. The line gives the reason, for example a missing permission

Its own channel and ping

An open row starts with Discord channel and Who it pings.

An open channel row for NASA with Discord channel set to #nasa-videos, Who it pings set to the Stargazers role, and Use its own message switched on with Edit message
  • A Discord channel. Leave it empty to use the server's default.
  • B Who it pings: roles, @everyone or @here. Leave it empty to use the server's default ping.
  • C Use its own message. See below.

Under each field, a line says what the channel uses right now: its own pick, or the server's default.

Its own message

Turn on Use its own message to give one channel a different post. Edit message opens the full message builder. It starts as a copy of the server's new video message.

A channel's own message is used for what that channel posts, in place of the server's messages. The stream ended message is always the server's, from the Messages tab.

Filters

Open Filters in a row to choose what posts. The line beside it sums up what's set, or says Everything this channel posts.

A channel's Filters with What to post set to Videos and Live only, The title must have one of these set to tutorial, The title must have none of these set to trailer, and Their Discord member under it
  • A What to post: Videos, Shorts, Scheduled, Live and Stream ended. Until you change one, the channel uses the server's default from What to post.
  • B The title must have one of these. Empty posts every title. Capitals don't matter.
  • C The title must have none of these. A title with any of these words never posts.
  • D Their Discord member, for the Live role.

One kind always stays on. To stop every post from a channel, switch the channel off.

A post that doesn't pass the filters is skipped, and nobody is pinged.

Their Discord member

Paste the creator's Discord user ID to link the channel to a member of your server. That member gets the Live role while the channel is live.

To copy a user ID in Discord, open Settings, then Advanced, and turn on Developer Mode. Then right click the member and press Copy User ID.

Messages

The Messages tab has one card for each message. Every message is fully editable: press Edit message to open the message builder, where you can change the words, the picture, the colour and the buttons.

The Messages tab with the When a video is posted card, its message, Edit message and its variables, beside a Discord preview of the alert for Fabian
  • A The card's title, and a line saying when the message is sent.
  • B Edit message opens the message builder.
  • C The variables this message can use. Click one to copy it.
  • D The preview, with sample details.
Message When it's used Its button
When a video is posted A new video goes up Watch on YouTube
When a Short is posted A new Short goes up Watch the Short
When a live stream or premiere is scheduled A live stream or premiere gets a start time Set a reminder
When a live stream starts A live stream starts. A scheduled post is edited into this one Watch live
When a live stream ends What the live post becomes when the stream is over Watch the replay
When staff list the channels The private answer to /youtube list None

A scheduled stream is one post from start to end. It's posted when the stream is scheduled, becomes the live message when the stream starts, and becomes the stream ended message when it's over.

Variables

Variable What it fills in
{yt_ping} The roles this alert pings, as mentions. Empty when it pings nobody
{event_youtube_channel_title} The channel's name
{event_youtube_video_title} The video's title
{event_youtube_video_url} The link to the video
{event_youtube_thumbnail_url} The video's picture
{event_youtube_channel_url} The link to the channel
{event_youtube_scheduled_at} When a scheduled stream starts, as a time Discord can show
{event_youtube_live_duration} How long the live stream ran
{server} The server's name
{yt_list} Every channel the server follows, one line each: the name, its last alert and its Discord channel
{yt_count} How many channels the server follows

Keep {yt_ping} in a message if you want the ping to show. The stream ended message never pings anyone.

To show the start time of a scheduled stream in each member's own time zone, write it as <t:{event_youtube_scheduled_at}:F>.

The BotGhost credit

On a free bot, every alert shows a small Made with BotGhost line under it. That covers videos, Shorts, scheduled and live posts, and the stream ended message. The reply to /youtube list shows the line about one time in three. Premium bots never show it.

The line sits under your message. It isn't part of your words, so editing a message doesn't remove it.

Options

The Options tab holds the defaults for every channel in the server.

Where alerts go

The Where alerts go and who they ping card sets the server's default Discord channel and ping.

The Options tab with Where alerts go and who they ping set to #new-videos and the Video pings role, and When a live stream ends set to Edit the post
  • A Channel. Every YouTube channel without its own Discord channel posts here. Your bot needs View Channel, Send Messages and Embed Links there.
  • B Who gets pinged: roles, @everyone or @here. Empty pings nobody.
  • C When a live stream ends. See below.

Your bot needs Mention Everyone to ping @everyone, @here, or a role that not everyone can mention.

A channel with its own Discord channel or ping uses that. See Its own channel and ping.

When a stream ends

On the When a live stream ends card, choose what happens to the live post once the stream is over.

Choice What your bot does
Edit the post The live post becomes the stream ended message. This is how it starts
Delete the post The live post is taken away
Leave it The live post stays as it is

The stream ended message starts as "Fabian was live on YouTube", with how long the stream ran and a Watch the replay button.

Your bot checks live streams every two minutes, so the post changes a few minutes after the stream ends. If someone deleted the live post, your bot has nothing to edit and does nothing.

What to post

The What to post by default card picks the kinds of post every channel makes, unless a channel picks its own in its Filters.

The What to post by default card with Videos, Shorts, Scheduled, Live and Stream ended all on, beside the Live role card with the Live now role picked
  • A Post these. Press a kind to turn it on or off.
  • B The Live role. See below.
Kind What it covers
Videos A new video
Shorts A new Short
Scheduled A live stream or premiere that has a start time
Live A live stream that has started
Stream ended Changing the live post when the stream is over

All five are on to start with. One kind always stays on. To stop every post, switch the channels off, or the module.

Live role

Pick a Role on the Live role card. Your bot gives it to a channel's Discord member while the channel is live on YouTube, and takes it away when the stream ends.

The role only goes to channels with a member set. See Their Discord member. Your bot needs Manage Roles, and its own role has to sit above the live role in your server's role list.

Leave the role empty for no live role.

Bot status

Bot status while live needs Premium, because only Premium bots can change their status. On a free bot the card still shows, with its two settings switched off. Everything else in YouTube Alerts is free.

Show one channel on the bot's own status while it's live on YouTube. The status shows as Streaming, with a link to the stream. It only changes for live streams, not for videos.

The Bot status while live card with a Premium tag, Which channel set to NASA, and Status text set to the channel's name is live on YouTube, with Shows as: Streaming NASA is live on YouTube under it
  • A Which channel. Pick one from the server's list, or Off.
  • B Status text, up to 128 characters. It starts as {event_youtube_channel_title} is live on YouTube.
  • C How the status will look.

When the stream ends, the bot's saved status comes back.

A bot has one status for every server it's in. If two servers each pick a channel, the last one to go live shows.

Commands

Command What it does Who can use it
/youtube list Lists the server's YouTube channels, each one's last alert and its Discord channel Members with Manage Server

Only the person who used the command sees the reply. You can change the reply on the Messages tab.

The YouTube Alerts commands card with /youtube opened to its list subcommand, and the YouTube Alerts events card with New video, Live started and Live ended
  • A /youtube list, with Edit and its own switch.
  • B The three events. Press one to open it in the builder.
  • C Show variable names shows each setting's variable on the page.

Events

YouTube Alerts is made of ordinary builder blocks. You can open any event to see how it works, or add your own blocks to it.

Event When it runs What it does
New video A channel on the list posts a video, a Short or a scheduled stream Checks the kinds and filters, works out the Discord channel and the ping, then posts the message for that kind of post
Live started A live stream on the list starts Gives the live role, then edits the scheduled post into the live one, or posts the live message when there was none
Live ended A live stream on the list ends Takes the live role away, then edits or deletes the live post

Changing a setting on the page doesn't change the events. The blocks read your settings each time they run.

BotPanel

You can put YouTube Alerts on your bot's BotPanel website. Server admins can then set it up for their own server:

  • Channels: add a YouTube channel by name, @handle or link, and set each one's Discord channel, ping, own message, filters and Discord member. The website looks the name up on YouTube when the admin saves.
  • Messages: every message, with the full message builder.
  • The defaults: the default Discord channel and ping, what to post, what happens when a live stream ends, and the live role.

Bot status while live isn't on the website, because the status belongs to the whole bot. The commands and events stay on your dashboard.

You choose which settings admins see in Modules. Your BotPanel plan decides which servers can open the server dashboard.

Moving your old YouTube alerts in

If your bot already has YouTube Video Upload events, the page shows a Move your alerts in card. Press See what moves and it tells you what can move, for example "1 YouTube alert can move." and "1 stays as your own event because it has other blocks." Nothing moves until you press the move button. Not now closes the list.

The Move your alerts in card on the YouTube Alerts page, saying 1 YouTube alert can move and 1 stays as your own event because it has other blocks, with the Move 1 alert and Not now buttons
  • A How many alerts can move.
  • B The alerts that stay as your own events, and why.
  • C The button that moves them. It says how many, like Move 1 alert.

What moves:

  • An event with only the YouTube block and one Send or Edit a Message block becomes a channel on the list, in the server that owns the message's Discord channel.
  • The channel keeps the event's Discord channel. A role, @everyone or @here in the old message becomes its ping. A message you changed becomes the channel's own message.
  • The old event is switched off. It isn't deleted.
  • An event with other blocks stays as your own event and keeps working.

For 30 days, you can undo the move. That switches the old events back on and removes the moved channels.

On a free bot, moved alerts stop counting toward the 3 custom event limit, because module events never count.

Limits

What Limit
YouTube channels 100 in each server
Search results Up to 5
Status text 128 characters
Bot status One channel in each server, Premium bots only

The limits are the same on free and Premium bots.

Troubleshooting

A video went up and nothing posted

Check these in order:

  1. You pressed Save Changes after adding the channel. A row that says Starts after you save isn't watched yet.
  2. The channel's switch is on, and so is YouTube Alerts.
  3. That kind of post is on, for the server under What to post and for the channel in its Filters.
  4. The channel has a Discord channel, or the server has a default. A row without one says Pick a channel.
  5. Your bot has View Channel, Send Messages and Embed Links in that Discord channel. If the post failed, the row shows the reason in red.
  6. The video is public. Private and unlisted videos don't post.
  7. Your bot is online. A free bot is switched off after 7 days with no activity, and Start brings it back.

YouTube sometimes takes a few minutes to tell us about a new upload.

The search finds nothing

Paste the channel's link or its @handle and press Check. That looks the channel up exactly.

A Short posted as a video, or the other way round

Turn Shorts off under What to post if you only want full videos. If a Short keeps posting with the video message, tell us in the support server.

The ping shows as plain text

Your bot needs Mention Everyone to ping @everyone, @here, or a role that not everyone can mention.

The live role isn't given

Set the channel's Discord member, and pick a role on the Live role card. Your bot needs Manage Roles, and its own role has to sit above the live role. The role is only for live streams, not for videos.

The post didn't change when the stream ended

Your bot checks live streams every two minutes, so give it a few minutes. Check that Stream ended is on under What to post, and that When a stream ends isn't set to Leave it. If the live post was deleted, there's nothing to edit.

The bot's status doesn't change

Bot status needs Premium, and it only changes for live streams. Check that a channel is picked under Which channel, that the channel is switched on, and that the status text isn't empty.

Every alert shows Made with BotGhost

That's how alerts work on a free bot. See The BotGhost credit.