I realize that what I'm about to ask for might be used for spamming, but I don't see any way around that (although if someone comes up with a way to do this without it being able to be used for spamming, that much better).
I'm trying to write onto my bot a method where the players (nicks are stored in %play.list) can vote for the person that was picked (%spin.nick) to take a Truth or a Dare. Only those in the players list, excluding the person picked and the person that spun the bottle (%spin.last)
What I want the bot to do is PM the people that can vote, and ask them for their vote..putting a time limit of 2 minutes for voting. Voting options are to be Truth, Dare, or Skip. Each person is allowed one vote and the votes are to be tabulated, with the bot giving a random vote at the end, only if the number of Truth votes equals the number of Dare votes...those that voted Skip can be ignored for the count.
After all of the votes have been tabulated, the bot is to message the channel with the vote results (ie: %spin.nick will be getting a Truth from %spin.last by a voting of (#of Truths) : (# of Dares))
swapping Truth & Dare as appropriate if the vote came out for a Dare.
Looking forward to your replies and expertise.