How to set up the Twitch bot
You can use bot flows to automatically alert your server when you're streaming. You can use the triggers, actions, and variables to suit your needs, but below is a standard example of how you can send an automatic message to a channel on your server when you begin streaming.
- From your server's Settings, navigate to Bots, and select Twitch Bot
If you have already connected your Twitch account under integrations we will auto populate bot triggers for you.
- If you want others in your server to be announced when they go live, click the edit button on the flow and click Edit on the trigger flow Twitch stream online,
- Under Trigger details, set which members or roles can trigger this flow. By default, this field will be Any member or role. We will allow anybody with the @Streamers role to trigger this flow for this example. Then, click Next.
- Note: Only users who have linked their Twitch accounts can trigger this flow.
- Under Actions, click Add, and then select Send a custom chat message.
- Set any chat channel in your server that you want your custom message to be sent to, and then customize the content of the message. In the message field, type $ to access your Templating options.
- Decide if you want the user to receive a notification or if you want the message to be sent privately.
- This example will include $TriggeringUser and $TriggeringStreamLink:Link. This means that your message will include the user's name who triggered this flow and a link to the stream that triggered it. Click Next, and then Save your bot flow.
Important: the bot must be added to the channel's permissions that you want it to post to.
And you're all set! Now, anyone with the @Streamers role who starts a stream will automatically post a link to their stream on your server.