Adding to Napa's, implement some checks for whether a variable has been added for that specific person's vote, then unset them vars after the message has been sent, and a flood trigger control would be nice.
When you write a script, as per Napa's suggestion, put some thought into it, not just engage in a patchwork and put something together sketchily. Improve it and make your time worthwhile when you go about scripting.