Commands

Commands#

Everything is under /titlewatch. By default only members with Manage Server can use it; change that in Server Settings → Integrations.

Command

What it does

/titlewatch add streamer pattern channel [message] [style]

Add a watch, or update the one for that streamer and channel

/titlewatch iadd channel [style]

Same as add, but asks for the rest in a form

/titlewatch remove streamer [channel]

Remove a streamer’s watches, or just the one in channel

/titlewatch list

Show this server’s watches

/titlewatch test streamer

Send a notification now, using the current title

iadd is the one to use for long messages: the form gives you a multi-line box, where the message option of add is a single line.

Patterns#

A pattern is a Go regular expression, matched case-insensitively anywhere in the title:

Pattern

Matches titles…

tournament

containing “tournament”

^\[event\]

starting with “[Event]”

(collab|special)

containing “collab” or “special”

Characters like [ ] ( ) . ? * + have special meanings; put a \ before one to match it literally.

Messages#

The message is optional. Without one, the bot posts:

**{streamer}** is live!
> {title}
{url}

These placeholders are filled in:

Placeholder

Becomes

{streamer}

The streamer’s display name

{login}

Their Twitch login

{title}

The stream title

{category}

The game or category

{url}

The link to the stream

For example:

{streamer} is live with {category}! {title}
{url}

Pings: type @Role in the add command’s message option and Discord fills in the mention. In the iadd form, write @RoleName and the bot turns it into a ping for that role. @everyone works too, given the Mention Everyone permission. Mentions inside the Twitch title itself never ping.

Styles#

Style

Posts as

webhook (default)

The streamer’s name and avatar, through a webhook the bot manages

plain-webhook

The webhook’s own name and avatar

embed

The bot, with an embed

webhook and plain-webhook need the bot to have Manage Webhooks in that channel. The bot’s webhook starts out named “Stream Title Bot”. To give plain-webhook posts a different name or avatar, edit that webhook in the channel’s settings under Integrations → Webhooks.