# Setup Twitch/YouTube Notifications

**1.**  [Add Sx Live to your server](https://discord.com/oauth2/authorize?client_id=540349742178107409\&permissions=268946504\&response_type=code\&redirect_uri=https%3A%2F%2Fsxlivebot.com%2Fwelcome%3Fsource%3Dwebsite\&scope=bot%20applications.commands) if you haven't already.

**2.** Connect your Twitch or YouTube account to your Discord account if you haven't already.

![User Settings > Connections > Twitch or YouTube](https://2813527444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmhypyN8VH3H1pRJ72z3G%2Fuploads%2FDNnkVgxE0FIjiJZozdRg%2FDiscord_3s4bCo1fDA.png?alt=media\&token=69256407-8cb3-4455-b1c1-64dde480fceb)

{% hint style="info" %}
If you would rather add your twitch channel without connecting your account with Discord, you can add our multipurpose bot [Sx Bot](https://discord.com/oauth2/authorize?client_id=696870234262339614\&permissions=276220603640\&response_type=code\&redirect_uri=https%3A%2F%2Fsxbot.io%2Fwelcome%3Fsource%3Dsxlive\&scope=bot%20applications.commands) and use the command **`/twitch add`**
{% endhint %}

**3.** Make sure that Streamer Mode is enabled in your user settings.

**4.** Create a channel for stream announcements if you haven't already.

**5.** Configure the bot to send stream notifications to that channel.\
**Example:`+tchannel set #stream-notifications`**\
**Example:`+ytchannel set #stream-notifications`**

**6.** Add individual users in your server for whom the notifications will be sent for.\
**Example:`+tstreamers add @user#3214`**\
**Example:`+ytstreamers add @user#4141`**

**7.\[optional]** Set a required whitelist role in order to receive notifications.\
**Example:`+twhitelist add @Streamer`**\
**Example:`+ytwhitelist add @everyone`**

**8.\[optional]** Set a cooldown for the notifications\
**Example: `+tcooldown set 30m`**\
**Example: `+ytcooldown set 30m`**

{% hint style="info" %}
Cooldowns can anywhere from **5m** to **8 hours.**
{% endhint %}

**9.\[optional]** If you don't want to mention `@everyone` and only a specific role when streamers go live.\
**Example: `+tpingrole set @stream alerts`**

**10.\[optional]** Customize your own message for the stream alerts\
**Example:** **`+tmessage set {HERE} {STREAMER} is going live playing {GAME}!`**

{% hint style="info" %}
These variables can be used in the message:\
{STREAMER} = Twitch Username\
{USER} = Discord Username \
{MENTION} = Discord Mention\
{TITLE} = Stream Title\
{GAME} = Game Name \
{URL} = Twitch URL\
{EVERYONE} = Mention @everyone \
{HERE} = Mention @here
{% endhint %}

{% hint style="success" %}
All done! The notifications are setup.
{% endhint %}

{% hint style="warning" %}
For the stream notifications to work, you need to see a purple streaming icon next to member names who are streaming. This shows that Discord recognizes you are live, and the alerts will be sent. If you don't see this, try disconnecting/connecting your twitch/youtube account in user settings and make sure streamer mode is enabled and you are using OBS. If you still don't see the purple icon, you can try to add our multipurpose bot [Sx Bot](https://invite.sxbot.io) instead and add your channel directly without connecting.
{% endhint %}

If you still need assistance, please join our [Discord server](https://support.sxlivebot.com/).
