Add a Twitch Notification
How to setup Twitch notifications in your Discord server
1. Create a channel for stream announcements if you haven't already.
2. Configure the bot to send stream notifications to that channel.
Example:
/twitch channel set #stream-notifications
2. Edit your channel's settings, and go to the "Permissions" tab.
3. From the "Roles/Members" selection, add Sx Bot.
4. Allow Sx Bot to have the following permissions in the channel:
- View Channel
- Send Messages
- Embed Links
- Attach Files
- Use External Emoji
- Mention @everyone, @here, and All Roles
Add the streamers you'd like to receive notifications for.
1. Add the streamers name or channel link
Example:
/twitch streamers add xqc
Example: /twitch streamers add https://twitch.tv/xqc
That's it! Anytime the streamer
xqc
goes live, you will now receive an alert to the designated channel you set. If you'd like to edit the notification message. Read ahead.1. Set the announcement message that is sent when a streamer goes live with the variables below
Example:
/twitch message set {EVERYONE} {STREAMER} is just went live!
Streamer name | URL | Mention | Viewers | Game name |
---|---|---|---|---|
{STREAMER} | {URL} | {EVERYONE} | {VIEWERS} | {GAME} |
{USERNAME} | | {HERE} | | {PLAYING} |
| | | | |
2. View a test stream message with the embed.
Example:
/twitch message show-embed
In the test stream message, the values around brackets {} will be replaced by the streamers actual values when going live.
All done! Sx Bot will notify your Discord community next time the streamer you added goes live!
1. Filter notifications by title name. (Requires filter word to be in stream title)
Example:
/twitch title-filter set No Pixel
This is particularly useful for GTA RP servers, similar to hasroot, where only streamers who have the keyword in their title will have the notifications sent.
1. Choose whether to edit, delete, or do nothing to the stream message. (Default is nothing)
Example:
/twitch clean-up edit
1. Remove a streamer from the streamers list.
Example:
/twitch streamers remove xqc
Example: /twitch streamers remove https://twitch.tv/xqc
1. Show the current twitch streamers list.
Example:
/twitch streamers show
By default, there are no cooldowns on notifications. That means each time you go live, a notification will be sent to the channel. Some users may prefer to put a delay/cooldown in between notifications in case their stream restarts and rather not send another notification. To enable this, use
/twitch cooldowns set
followed by the amount of time such as: 5m
for 5 minutes, or 1h
for 1 hour. You can also use the format 5 minutes
or 1 hour
.