Originally Posted By: AeonPsych
in the code for when the number is right to shoot, just add a reference to the add/remove points alias.

As for targeting 2 different viewers, you would have to have the code within roulette identify another user, or have the command pre-identify another user. I'm not sure how to identify another user, but I am sure it is possible, and fairly easy to do, just need to figure out the syntax for it.

Off the top of my head, seems like you would need to access the twitch api for a list of current viewers, then pick one at random. For more complexity, check to make sure it isn't the one actually using the roulette (so they don't pull the trigger on someone else, who the someone else is actually them).


My guess is use sockets to access twitch api, store a random viewer into a variable to be accessed within roulette.
I don't know exact syntax for these methods to post code, but maybe this can help you get started.
-Aeon


That information actually is super helpful.. I will start looking things up to see if I can figure it out myself...

In the meantime, does anyone else know what the syntax would be? (just to help shorten my search time)