# Setup Live Role

**1.** Create a live role if you haven't already.

**2.** Configure the bot to the live role you created.\
**Example:`/twitch live-role set "Now Live" or "Streaming on Twitch"`**

{% hint style="warning" %}
Make sure the Sx Bot role is above the live you created and the bot has Manage Roles permissions.&#x20;
{% endhint %}

&#x20;**3.** Connect a Discord member to a twitch streamer.\
**Example:`/twitch discord-member connect User#1234 twitchuser123`**

{% hint style="success" %}
That's all! Once this streamer goes live on Twitch, they will automatically receive a live role, and have it removed once streaming has ended.
{% endhint %}

{% hint style="info" %}
Setting up the live roles this way is particularly helpful if the streamers in your server are using mobile or IRL streaming, where they aren't connecting to Twitch using OBS. If the majority of your servers are using OBS and have their Twitch accounts linked to their Discord account. You may choose to use our streaming bot [Sx Live](https://discord.com/oauth2/authorize?client_id=540349742178107409\&permissions=268946536\&scope=bot), which doesn't require individual discord members to be connected to twitch streamers as it will automatically detect anyone in your server who is streaming by their purple "streaming" status.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sxbot.io/twitch-notifications/setup-live-role.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
