Skip to content

The {schedule.*} helpers read the stream schedule you keep on Twitch. They work in a command reply, an event response, a timer, a pipeline step, a Discord notification and a webhook body. They do not work in a viewer’s own text, even with Viewer Templates on. If you have not used braces in a reply yet, read Variables and templates first.

The bot reads your schedule from Twitch once for each reply, however many schedule helpers the reply holds. It needs no extra Twitch permission for this.

Set your time zone first

Every time these helpers show is in your channel’s time zone, on a 24-hour clock. The one exception is {schedule.next.viewerTime}, which uses the zone you name in it. Your channel’s time zone is the Timezone field in Settings, under Bot basics. It starts as not set, and then times show in UTC, so set it before you use these helpers.

Day and month names follow the Language field in the same place. The same field sets the words in {schedule.next.in}, {schedule.next.relative} and {schedule.next.full}. These are the unit word (days), the word in and the words next stream. In Dutch, for example, “in” becomes “over” and “next stream” becomes “volgende stream”. With no language set, all of these are in English.

The next stream

HelperWhat it givesExample
{schedule.next.at}The day and start timeFriday 20:00
{schedule.next.date}The day and dateFriday 30 October
{schedule.next.in}How long until it starts4 days
{schedule.next.relative}How long until it starts, as a phrasein 4 days
{schedule.next.full}How long until it starts and when, in one linenext stream in 4 days, Friday 20:00
{schedule.next.title}The title you gave the stream on your scheduleBot night
{schedule.next.game}The category of the streamSoftware and Game Development
{schedule.next.duration}How long the stream is planned to last, in hours and minutes3h
{schedule.next.isRecurring}true when the stream repeats every week, false when it is a one-offtrue
{schedule.next.viewerTime:America/New_York}The short day and start time in the time zone you nameFri 15:00

{schedule.next.at}, {schedule.next.date} and {schedule.next.full} show the day and time in your channel’s time zone, the Timezone field in Settings. When that field is not set, they show it in UTC. {schedule.next.in} and {schedule.next.relative} count from now, so the time zone does not change them.

The next stream is the first one on your schedule that is not canceled and has not ended yet. A stream that has already started still counts until its planned end, so during that stream these helpers describe the stream that is running. {schedule.next.duration} rounds the planned length to the nearest minute. A length of whole hours shows only the hours, such as 3h. A length with minutes left over shows the hours and then the minutes, such as 2h 30m. A stream planned for less than an hour shows only the minutes, such as 45m.

Times for viewers in another zone

{schedule.next.viewerTime} shows the same start as {schedule.next.at}, but in a time zone you name instead of your channel’s zone (UTC when Timezone is not set). It needs one time zone name after the colon, written the way the time zone database names it: a region, a slash and a city, such as America/New_York, Europe/London or Asia/Tokyo. The example above is only a sample of the shape: a time of day in the zone you name, not a conversion for your own stream. A name the bot does not know, or no name at all, makes the helper print as typed, so check a new name once in your own chat.

The streams after it

HelperWhat it givesExample
{schedule.list:3}The next streams, each with its short day, start time and title. The number says how many, from 1 to 10, so 3 gives three streamsFri 20:00 Bot night · Sun 14:00 Chill · Tue 20:00 Bot night
{schedule.week}The days of this week, Monday to Sunday, that still have a stream to comeFri, Sun
{schedule.today}Today’s streams that have not ended, each with its start time and title20:00 Bot night

{schedule.list} needs its number. Without one, or with a number outside 1 to 10, it prints as typed. {schedule.week} and {schedule.today} leave out streams that have already ended, so a stream earlier this week does not show.

A planned break

HelperWhat it givesExample
{schedule.vacation}The first and last day of the break, while it is planned or runningFri 6 Nov - Sun 15 Nov
{schedule.vacation.until}The day the break endsSunday 15 November

The break is the vacation you set on your Twitch schedule. Both helpers give nothing once the break has ended, or when you have not set one.

The next-stream helpers do not skip streams inside the break. They show the first stream on your schedule that is not canceled and has not ended, even when that stream falls on a break day. So during a break, name the break in the reply as well. A !nextstream reply for the weeks of a break can be:

On a break until {schedule.vacation.until}. Next stream: {schedule.next.at}

When no stream that is not canceled is left inside the break, this gives On a break until Sunday 15 November. Next stream: Tuesday 20:00, with the first stream after the break. When a stream is left inside the break, the reply names that stream’s day instead. When the break is over, the first part reads On a break until ., so change the reply back to {schedule.next.full} at that point.

HelperWhat it givesExample
{schedule.link}The link to your schedule page on Twitchhttps://twitch.tv/samplechannel/schedule
{schedule.ical}The link to your schedule as a calendar file (iCalendar) that viewers can add to their calendar apphttps://api.twitch.tv/helix/schedule/icalendar?broadcaster_id=123456

These two are built from your channel name and Twitch channel ID, so they work even when your schedule is empty.

Empty, or printed as typed

A schedule helper either gives an empty result or prints exactly as you typed it, braces and all. Which one tells you the cause.

What you seeCause
{schedule.week}, {schedule.today}, {schedule.list:3}, {schedule.vacation} or {schedule.vacation.until} gives nothingThere is nothing to list: no stream to come in that period, or no break. A channel that never saved a schedule counts as an empty schedule
A {schedule.next.*} helper prints as typedNo stream is left on your schedule that is not canceled and has not ended. For {schedule.next.game} alone, the next stream has no category set
Every schedule helper except the two links prints as typedTwitch did not answer. The next reply asks Twitch again

Back to Template helpers.