I need a script that will allow the chatters to vote on whether or not game/s should be played.... when they type in !trivia and the like...

The chatroom isnt a gaming room really, but... some ppl are rude and come in only to play the games....

Sooooo... when they type in the command to start the game... I would like it to automatically start a poll of the ppl in the room, in they dont vote its not a issue either... basically a timed response... no vote cast... no vote made.... it takes whomever voted and tallies the results .. if playing the game wins, the game starts automatically. If not... chatting continues.

After say... 5 mins the votes are reset, and ppl can vote again. If the game is stopped or they want to play another game...

SO.... HELP!!!