Trigger Fireworks from events, commands or channel points in Streamer bot!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video trigger fires from a command channel point or other events events that also scale so you get a large raid you'll put on quite the show hello and welcome to stream robot bytes where i cover how to set up and to make the most of the awesome streamer bot there is one video per topic to make it easy as possible to follow and find when relevant sample import code will be provided to make it even easier for you to get started and add functionality to your stream so let's get started with a topic for this video to set up an obs we just need to add a browser source [Music] so if you have nested scenes i suggest you put it into there so it's on every scene if not you can hur you re-use the same browser source in the scenes that you want to have the fireworks so you can create a new browser source i'm going to call it fireworks the name doesn't make a difference whatsoever we then need to get the url from the import code and this is um [Music] we then need to get the url from the description below paste that in there so that's vrflab.com fireworks fireworks v2.html the width and height need to be that i'll set into obs so in 1920 by 1080 by default and we can see there this is all got that set up now there is sound on this so depending on how you have your sound to set up an obs you'll probably want to control the audio by obs you can then under advanced audio properties change the order monitoring so for myself i use um everything on monitor only mute output and now i can control the volume of the fireworks here to set up streaming bot for fireworks open up the import code from the link in the description below select the whole text copy then stream bots paste it into the import string we'll see here it imports 13 actions including a queue called fireworks a command called fireworks so if you don't want to be triggering a single fire up by that you can untick that and that's all ready to go so the queue here fireworks blocking is one that's really needed here to work properly so import the code now this is going to by default import the command we'll see here there's no permission so everyone is allowed but you might want to limit it to moderators and vips for example if you want to do that change that away you may want to have a way to toggle it to be enabled and disabled on the command on a particular event that may be happening in your stream so this is the simplest of the actions that we set up for fireworks what we do need for fireworks to function is the websocket server to be enabled if it's not enabled already it'll look something like this you just select the auto start click on start server and that's all you need to do so within the actions you have all the events here you have a general 10 fireworks so you could tie the fireworks command for example instead of to fireworks to a general 10 fireworks when 10 fireworks be set off what most people will probably want to use this for is the tie to events so things like subs resubs gifts ups gift bombs hosts raids and we have all the the details in here it's about to cover that for you if you have um if you want to set up cheers for example let's start with that you can just pick the cheers action here now if you already had a cheer action you can go to here see if it's got an action there already find action and then you can do something like go to the fireworks events chairs in there so you can add this to your actions that you already have in place for events rather than having to replace them now there are ones for cheers gift bomb gift sub raid resub and sub because when those events occur certain arguments are set in the bots and you can see in here that's you'll have in the top of them your set argument bits per firework to 50. this means 50 bits per firework so 0 to 50 is one firework 50 to 51 to 100 will be 2 etc so you can control the fireworks that you're going to get it does scale very well um on most machines you'll get a good experience of the fireworks but obviously test it see how it feels with the kind of bit ranges that you get donated in your channel gif bombs much the same so what you'll find is it will multiply the gifts by the gift bomb multiplier which is set at the top here currently five by the tier and it's prime or tier one it multiplies it by one tier two multiplies by two tier three is multiplied by three gifts up very very similar monthly multiplier again multiplied by the tier rate rate multiplier is going to multiply the number of viewers that are rated by the red multiplier again you might want this to be a smaller number if you get big rates you can always use a fraction of a number say 0.1 so 10 uh 10 raiders will be one firework but it depends on your channel this is why you have these options to customize it resubs again you have a monthly multiplayer looks the tier looks at some the accumulative months so if someone's reset for 10 months it's going to be multiplied by 10. so for those that really supported your channel they're going to get quite a show for those are subscribing for the first time they have a monthly multiplier by one but obviously no human of months so it's going to be very similar the events here are just to fix changing the tier names from actual names to a number to using the math we also have a general action as well this is so you can do things like hosts so a host may give 10 fire books which is what i use but i've left there as a generic option if you wanted to say do 20 fireworks as an option you can just right click duplicate change it to 20 fireworks in the name change argument here to be 20 and as simple as that you've got an action that triggers 20 fire books and you can use it from anywhere voice action html deck whatever you want so that's how to get it all set up in stream box and now we're ready to test within twitch events and the relevant events we can put things like different bits values to test so you can see 100 bits here is doing two sets of fireworks sometimes the firework redeemed does actually more than one firework because they're tied together in in the webpage but you can see here if we do a thousand bits this can do ten times a lot of different fireworks there a much better show and you'll see it scale up more and more and more quite quite easily this is a relatively low powered laptop it's using an intel graphics card in it or from the processor itself and you can see it's handling quite well and something like 5000 bits by default is going to do quite the show and to really show you appreciation of the support in your channel you can test other events in the same way we won't do that now but in subs for example you can set the tier resubs the cumulative will make a difference here gives us gift bombs hosts and so forth and they have the optional part the explanation of the actions that are used here the web page as you thought before will connect using web sockets what that does it tracks for the action being triggered of fireworks and we can see here there's actually nothing that happens if i and fireworks action apart from a short delay so the websockets going to be triggered um by that action and so whatever you trigger this be it through a single command or by other events we're going to do one firework the multi-redeem is the main one and this will look at a argument called cumulative if that's greater than zero it's gonna do the fireworks continue then if not it's going to set an argument cumulative to the math so it's going to use math math calculation cumulative minus 1. so it takes off one so it then does uh fireworks again delays and calls itself now calling itself is usually a very bad idea in streaming bots it does do a warning when you create this but in this circumstance it's okay you just need to make sure you're calling where you have a cumulative number set and you'll see when we action this multi-redeem the number is set beforehand the way it also does it reduces that number each time until you get to a point where it's equal to or less than zero events like cheers work this number right based on um bits per firework and what we'll do then is the bits if it's greater than zero again we're going to try and loop around we call the events cheers much the same way we set the argument bits which is what we start off with to the math of bits minus bits per firework so it means if you have 50 bits we're going to get the initial number take 50 off it so if you have 100 we're gonna run it through uh basically from there and so we'll see that's the bits per firework is going to vary to how many fireworks you get for the bits that have been uh processed in the stream again running the action fireworks will trigger the fireworks after delay and calling itself gift bomb gift sub rage resub they all do very similar things they have an argument to multiply they set that cumulative value to zero just to be safe do the math there and we call it the multi-redeem with that large number set and they all work in a very very similar way what you'll see in resab and sub you'll look for tier if it equals prime tier one tier two or tier three it's going to trigger these events of the fixes that's basically going to change the tier one to one or prime to one tier two number two this is so then you can use that in the math multiple type multiplier later on so it's looking at the actual name which can't be used because it's tier one prime tier two tier three and it's changing it to a number so then it can do the mass with that number then calling the fireworks multi-redeem to actually trigger the fireworks itself and that then concludes it for today please like and subscribe to be notified of more videos like this if there's a topic you like covered please do let me know in the comments or on discord check out my twitch stream to see the bot in action and for other examples the links to my twitch social media and streaming bots can be found at vrflab.com additional links to others that provide stream robot content can be also found in the description finally thank you net for making a great bot and please consider supporting his patreon which is linked from streamr.bot
Info
Channel: VRFlad
Views: 4,990
Rating: undefined out of 5
Keywords: #StreamingTips, #StreamerBot, #OBS, #SLOBS, #twitch bot, #live streaming, #twitch
Id: UdUAvDM25Eg
Channel Id: undefined
Length: 13min 23sec (803 seconds)
Published: Fri Jul 22 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.