I need help with a youtube random viewer picker for maybe a roleplay or Murder game.
You can use the Nightbot Giveaway system or the
!winner command to pick a random user in chat.
Is there a way to make it in a command? like $(user) killed $(random user) and stole $(eval Math.floor((Math.random() * 100) + 1)) gold coins.
Currently not, there is no random user variable/API for Youtube yet.
You can build a API for get all users and randomize one!
That’s what I was trying to say, is there an API for a YouTube random viewer picker?
Youtube has no way to get a list of people watching the stream. So that only way to make it random is by collecting the users who’ve chatted in the past 15 minutes, which is what Nightbot does.
Do you know how to call that variable or access it?
There is no variable you can access to achieve this. The only built in way is through the default
Is there an API that can improvise?
As stated above:
Until Youtube creates an API there is no way to get a list of users.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.