Setup Stream Notifications
How to setup Twitch notifications in your Discord server
2. Connect your Twitch or YouTube account to your Discord account if you haven't already.

User Settings > Connections > Twitch or YouTube
If you rather add your twitch channel without connecting your account with Discord, you can add our multipurpose bot Sx Bot and use the command
/twitch streamer add
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
Cooldowns can anywhere from 5m to 8 hours.
9.[optional] Set the live logs channel to keep track of streamers going online/offline.
Example:
+tlivelogs set #live-logs
10.[optional] If you don't want to mention
@everyone
and only a specific role when streamers go live.
Example: +tpingrole set @stream alerts
11.[optional] Customize your own message for the stream alerts
Example:
+tmessage set {HERE} {STREAMER} is going live playing {GAME}!
Use the following keys to insert certain information in your messages
{STREAMER} = Twitch Username
{USER} = Discord Username
{USER.TAG} = Discord Tag
{GAME} = Game Name
{URL} = Twitch URL
{EVERYONE} = Mention @everyone
{HERE} = Mention @here
All done! The notifications are setup.
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.

Stream Icon