Author Topic: Vote  (Read 2496 times)


  • Newbie
  • *
  • Posts: 14
« on: October 20, 2011, 03:57:30 AM »
ok, i wish to make a script that when i type *vote, people have 2 minutes to vote, if they want to agree they type f1, if they want to disagree they type f2. i also want it so if more than half the people in the server (with the ability to exclude services like ChanServ) agree, it msg's the channel "Vote Passed!". if more than half the people in the channel vote f2 then it msg's the channel "Vote Failed!".
i hope how i described it is easy to understand, and this is what i think it should be or what i understand it to be:
Code: [Select]
Sub ONTEXT(Message,Channel,Nickname,Host,ServerNumber)
If lcase(Channel)="#j4ck" Then
'||some command to start and stop the voting period||
If Result="f1" Then
SendCommand "/msg " & Channel & " Vote Passed!",ServerNumber
ElseIf Result="f2" Then
SendCommand "/msg " & Channel & "  Vote Failed!",ServerNumber
End If
End Sub