Simple Stream giveaways! Streamer bot bites.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this episode of stream robot bites giveaways both entering and picking winners hello and welcome to stream robot bytes where i cover how to set up and to make the most of the awesome stream robot 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 to get started and to add functionality to your stream let's get started with the topic for this video to implement the giveaway we need two actions one two enter the giveaway i want to pick the winner so first to actually have an enter giveaway action well it giveaway's group as well within the sub-actions we'll need two things the first thing we're going to write to the file and you call it giveaway.txt it's already far there we're going to replace it and we're just going to write in quite simply just the username itself nothing else is needed here so what's going to happen as we enter the giveaway we're going to have a list in this text file of all the names that have entered now you've got the list populated before we want to report back to stream that they've entered the giveaway so let's send a message to the channel so thank you user for entering the giveaway and that's all we need to do to actually start the giveaway to start creating his entries we'll also need command to get a giveaway winner again i want it in the giveaways group says nice and easy to find later if we need to do those actions within this again we need two entries the first one is to read a random line from the file it's gonna be the same file that we've had before it doesn't matter where you store this file it sits totally up to you where you want that to be updated what we can do then we've got a random lines that's going to be a random name from the list that you've put in you want to announce that to the the channel itself so congratulations and it's random line you are our winner now if you want to do multiple multiple times of calling out a giveaway winner you'll find that it'll pick a random line and it may pick the same person twice but let's have a look at what we can do to control the number of entries we can do and how to actually set the command up to pull out the winner so let's do and enter giveaway and the action for that is end to give away we don't need to modify the permissions for this unless you only want it maybe your subscribers it could be the limitation there what you really want to consider though is you use a cooldown how often can someone enter the giveaway this is a very simple giveaway code so the generally you can only limit it by number of uh time you could do things like checking for points if you're implementing the point system you could have this instead of a command as a channel point reward that way and you can limit the number of times they could be entered that way so there's various ways you can trigger the command um just using the actual um text command itself is what we're showing here though so the user cooldown say could be every thousand seconds there could be an entry into the giveaway and then finally you just need a winner command we shall just run the giveaway winner and you'll probably want that to be a moderator or stream of permission so you might want to pick the user specifically of of the broadcaster now let's have a look at what that will look like so to enter the giveaway we use enter giveaway command and that's showing is entered to give away and get the winner next to my shot winner which surprised me just picks me because i'm the entrant please like and subscribe to be notified of more videos like this if there's a topic you'd like covered please let me know in the comments or also on discord check my twitch stream to see the bot in action and for other examples so the links to my twitch social media and just drew robot can be found at vr additional links to others that provide streambot content can be found in the description too finally thank you so much to nate for making a great box please do consider supporting his patreon which is linked from streamr.bot
Info
Channel: VRFlad
Views: 1,734
Rating: undefined out of 5
Keywords: #StreamingTips, #StreamerBot, #OBS, #SLOBS, #twitch bot, #live streaming, #twitch
Id: IEFLrrGu0KA
Channel Id: undefined
Length: 6min 21sec (381 seconds)
Published: Tue Sep 14 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.