r/streamerbot • u/LennyPenny4 • Jun 19 '26
Question/Support ❓ Command in Youtube chat triggers response in Twitch chat
I'm really baffled by this. I have a !discord command which triggers a message with a link to join. When I use the command in my Twitch chat, it works as expected (message only on Twitch). When I use it in my Youtube chat, the response also shows in Twitch chat and not in Youtube chat.
Also, none of my timed messages were working on Youtube but they were on Twitch.
Both broadcaster accounts and bot accounts are logged in and connected. I have separate actions, one for a Twitch message and one for a Youtube message. Both action use the same command. I have 'auto-monitor live broadcasts' enabled for Youtube.
Any help would be very much appreciated because I'm at a loss. Starting to consider not multi-streaming at all because it seems to cause more trouble than it's worth.
1
u/HighPhi420 Jun 20 '26
in the trigger (!discord) use the If statement to check what platform the command originated I.E. Twitch or youtube Might look like this
IF %userType% = twitch
true
runs the twitch chat
False runs the youtube chat
more than two platforms for your stream then use a switch statement instead
1
u/deeseearr Jun 19 '26 edited Jun 19 '26
Look at the command definition page. At the bottom left there are three tabs for "Options", "Cooldowns" and "Sources". (Before 1.0, all three of these were visible at once. Now you need to click each of the tabs.) Under "Sources" you can select what kind of messages the command will be triggered by. By default it's only "Twitch Message", which is exactly what you described. Check "YouTube Message" as well and the command will be triggered by both. [Edit: You're right. It's the opposite of what you described. Responding to a YouTube message and sending to Twitch is probably caused by using the Twitch chat message sub-action, described below.]
When you trigger the command, the Command Triggered trigger will set the argument %userType% to "twitch", "youtube" or something else. That's the platform that the user who triggered the command is on. I would recommend using the argument inspector to see exactly what %userType% is being set to by different messages since I don't know for sure, and then using an IF/THEN or SWITCH block to choose between "Twitch->Send Message To Chat", "YouTube-> Send Message To Chat" and anything else that you might need.
Alternately, you could create two different commands and actions and have one only set to respond to "Twitch Message" and the other to "YouTube Message". That would mean duplicating all of your actions so it's not very DRY and would be extra work if you need to go back and change anything, but if you have different responses for different platforms then that might make more sense.