Closed samuri51 closed 12 years ago
To get the userid use data.room.metadata.votelog[0][0]
How this works. If they awesome, their userid is in there. If they only lame, their userid is NOT listed. If first they awesome, then lame, their userid is listed.
Why? Think about it. On the UI, you don't do anything if you lame. Thus no userid is needed. In fact, I am not sure why they would need to transmit the lames at all. If a person awesomes, they start to bop. You need the userid to do that. Same thing with starting with awesome, then lame, the UI needs to know to stop the user from bopping.
how do i get the persons user id out of this? https://github.com/alaingilbert/Turntable-API/blob/master/turntable_data/update_votes.js
i need it to update when they vote for my afk timer.