this is a multi vote script so you can vote anything you like
ill show some eg down below, all commands are at the bottem of the snippet, hf =] , this script last for a hour, so that it can get plenty of votes, and also says what vote is in progress every 10 mins, 3 lines, so it might spam a bit :x
eg: [02:01:37] [@Sw1ft-bot] [- Vote In Progress. -]
[02:01:37] [@Sw1ft-bot] [- Question: w/e -]
[02:01:37] [@Sw1ft-bot] [- !vote1 For ( 55 ) , !vote2 For ( 55 ) , !vote3 For ( 4 ) , !vote4 For ( 5 ) -]
::
[02:02:37] [@Sw1ft-bot] [- Voting Has Now Finished! -]
[02:02:37] [@Sw1ft-bot] [- Results For Question: w/e -]
[02:02:37] [@Sw1ft-bot] [- ( 55 ) WINS With ( 1 ) Voted -]
[02:02:37] [@Sw1ft-bot] [- 55 ( 1 ) , 55 ( 1 ) , 4 ( 0 ) , 5 ( 0 ) -]
here it is HF! :D
on 1:TEXT:*!vote on*:#:{
if (%voting == ON) {
msg $chan Voting is allready enabled $nick $+ .
}
elseif ($address($nick,2) iswm *!*@wackybot.users.quakenet.org) {
set %voting ON
/timers off
/remini voted2.ini VOTED
msg $chan Voting is now enabled, type $+ : !vote-commands to voew commands on how to set it up.
}
}
on 1:TEXT:*!vote off*:#:{
if (%voting == OFF) {
msg $chan Voting is allready disabled $nick $+ .
}
elseif ($address($nick,2) iswm *!*@wackybot.users.quakenet.org) {
set %voting OFF
/timers off
/remini voted2.ini VOTED
msg $chan Voting is now disabled.
}
}
on 1:TEXT:*!set q *:#:{
if (%voting == OFF) { msg $chan Voting is currently disabled .
}
elseif (%vote.1) {
msg $chan Allready A Vote In Progress $nick $+ .
}
elseif ($address($nick,2) iswm *!*@wackybot.users.quakenet.org) {
set %vote.channel $chan
set %vote.2 $3-
set %voted.1 0
set %voted.2 0
set %voted.3 0
set %voted.4 0
set %vote.3 0
set %vote.4 0
set %vote.5 0
set %vote.6 0
msg $chan Question Has Been Set.
}
}
on 1:TEXT:*!set v1*:#:{
set %voted.1 $3
msg $chan 1 Has Been Set.
}
on 1:TEXT:*!set v2*:#:{
set %voted.2 $3
msg $chan 2 Has Been Set.
}
on 1:TEXT:*!set v3*:#:{
set %voted.3 $3
msg $chan 3 Has Been Set.
}
on 1:TEXT:*!set v4*:#:{
set %voted.4 $3
msg $chan 4 Has Been Set.
}
on 1:TEXT:*!stop vote*:#:{
if (%voting == OFF) { msg $chan Voting is currently disabled .
}
elseif ($address($nick,2) iswm *!*@wackybot.users.quakenet.org) {
unset %vote.channel
unset %voted*
unset %vote*
set %voting OFF
/timers off
msg $chan [- The Current Vote Has Been Stopped. -]
}
}
on 1:TEXT:!start vote*:#:{
if ($address($nick,2) iswm *!*@wackybot.users.quakenet.org) {
msg %vote.channel [- The Vote Is Now Set -]
msg %vote.channel [- Question $+ : %vote.2 )
msg %vote.channel [- !vote1 For ( %voted.1 ) , !vote2 For ( %voted.2 ) , !vote3 For ( %voted.3 ) , !vote4 For ( %voted.4 ) -]
msg %vote.channel [- Get VOTING! -]
/timerfin 1 3600 votefin
/timerspam 0 600 msg %vote.channel [- Vote In Progress. -]
/timerspam2 0 600 msg %vote.channel [- Question $+ : %vote.2 -]
/timerspam3 0 600 msg %vote.channel [- !vote1 For ( %voted.1 ) , !vote2 For ( %voted.2 ) , !vote3 For ( %voted.3 ) , !vote4 For ( %voted.4 ) -]
}
}
alias votefin {
if (%vote.3 > %vote.4) || (%vote.3 > %vote.5) || (%vote.3 > %vote.6) {
msg %vote.channel [- Voting Has Now Finished! -]
msg %vote.channel [- Results For Question $+ : %vote.2 -]
msg %vote.channel [- ( %voted.1 ) WINS With ( %vote.3 ) Voted -]
msg %vote.channel [- %voted.1 ( %vote.3 ) , %voted.2 ( %vote.4 ) , %voted.3 ( %vote.5 ) , %voted.4 ( %vote.6 ) -]
unset %vote.channel
unset %voted*
unset %vote*
set %voting OFF
/timers off
}
elseif (%vote.4 > %vote.3) || (%vote.4 > %vote.5) || (%vote.4 > %vote.6) {
msg %vote.channel [- Voting Has Now Finished! -]
msg %vote.channel [- Results For Question $+ : %vote.2 -]
msg %vote.channel [- ( %voted.2 ) WINS With ( %vote.4 ) Voted -]
msg %vote.channel [- %voted.1 ( %vote.3 ) , %voted.2 ( %vote.4 ) , %voted.3 ( %vote.5 ) , %voted.4 ( %vote.6 ) -]
unset %vote.channel
unset %voted*
unset %vote*
set %voting OFF
/timers off
}
elseif (%vote.5 > %vote.4) || (%vote.5 > %vote.3) || (%vote.5 > %vote.6) {
msg %vote.channel [- Voting Has Now Finished! -]
msg %vote.channel [- Results For Question $+ : %vote.2 -]
msg %vote.channel [- ( %voted.3 ) WINS With ( %vote.5 ) Voted -]
msg %vote.channel [- %voted.1 ( %vote.3 ) , %voted.2 ( %vote.4 ) , %voted.3 ( %vote.5 ) , %voted.4 ( %vote.6 ) -]
unset %vote.channel
unset %voted*
unset %vote*
set %voting OFF
/timers off
}
elseif (%vote.6 > %vote.5) || (%vote.6 > %vote.4) || (%vote.6 > %vote.3) {
msg %vote.channel [- Voting Has Now Finished! -]
msg %vote.channel [- Results For Question $+ : %vote.2 -]
msg %vote.channel [- ( %voted.4 ) WINS With ( %vote.6 ) Voted -]
msg %vote.channel [- %voted.1 ( %vote.3 ) , %voted.2 ( %vote.4 ) , %voted.3 ( %vote.5 ) , %voted.4 ( %vote.6 ) -]
unset %vote.channel
unset %voted*
unset %vote*
set %voting OFF
/timers off
}
elseif (%vote.3 == %vote.4) || (%vote.3 == %vote.5) || (%vote.3 == %vote.6) {
msg %vote.channel [- Voting Has Now Finished! -]
msg %vote.channel [- Results For Question $+ : %vote.2 -]
msg %vote.channel [- All Voted Was A DRAW !! -]
msg %vote.channel [- %voted.1 ( %vote.3 ) , %voted.2 ( %vote.4 ) , %voted.3 ( %vote.5 ) , %voted.4 ( %vote.6 ) -]
unset %vote.channel
unset %voted*
unset %vote*
set %voting OFF
/timers off
}
elseif (%vote.4 == %vote.3) || (%vote4 == %vote.5) || (%vote.4 == %vote.6) {
msg %vote.channel [- Voting Has Now Finished! -]
msg %vote.channel [- Results For Question $+ : %vote.2 -]
msg %vote.channel [- All Voted Was A DRAW !! -]
msg %vote.channel [- %voted.1 ( %vote.3 ) , %voted.2 ( %vote.4 ) , %voted.3 ( %vote.5 ) , %voted.4 ( %vote.6 ) -]
unset %vote.channel
unset %voted*
unset %vote*
set %voting OFF
/timers off
}
elseif (%vote.5 == %vote.4) || (%vote.5 == %vote.3) || (%vote.5 == %vote.6) {
msg %vote.channel [- Voting Has Now Finished! -]
msg %vote.channel [- Results For Question $+ : %vote.2 -]
msg %vote.channel [- All Voted Was A DRAW !! -]
msg %vote.channel [- %voted.1 ( %vote.3 ) , %voted.2 ( %vote.4 ) , %voted.3 ( %vote.5 ) , %voted.4 ( %vote.6 ) -]
unset %vote.channel
unset %voted*
unset %vote*
set %voting OFF
/timers off
}
elseif (%vote.6 == %vote.4) || (%vote.6 == %vote.5) || (%vote.6 == %vote.3) {
msg %vote.channel [- Voting Has Now Finished! -]
msg %vote.channel [- Results For Question $+ : %vote.2 -]
msg %vote.channel [- All Voted Was A DRAW !! -]
msg %vote.channel [- %voted.1 ( %vote.3 ) , %voted.2 ( %vote.4 ) , %voted.3 ( %vote.5 ) , %voted.4 ( %vote.6 ) -]
unset %vote.channel
unset %voted*
unset %vote*
set %voting OFF
/timers off
}
}
on 1:TEXT:*!status*:#:{
if (%voting == OFF) {
msg $chan Voting is currently disabled.
}
elseif ($address($nick,2) iswm *!*@wackybot.users.quakenet.org) {
msg $chan [- Current Status Is $+ : -]
msg $chan [- Question $+ : %vote.2 -]
msg $chan [- %voted.1 ( %vote.3 ) , %voted.2 ( %vote.4 ) , %voted.3 ( %vote.5 ) , %voted.4 ( %vote.6 ) -]
}
}
on 1:TEXT:*!vote-commands*:#:{
if (%voting == OFF) {
msg $chan Voting is currently disabled.
}
elseif ($address($nick,2) iswm *!*@wackybot.users.quakenet.org) {
msg $nick [- Command list for Voting. -]
msg $nick [- !vote on , !vote off , !set Q <question here> , !set v1 , !set v2 , !set v3 , !set v4 , !start vote < to start it after setting up.>
msg $nick [- !status to see status of vote , ' !vote1 , !vote2 , !vote3 , !vote4 ( to vote ) ' , !votehelp < to see how to vote.>
}
}
on 1:TEXT:*:#:{
if (%voting == OFF) { halt
}
elseif ($1 == !votehelp) {
msg $chan To Vote Use !vote1 ( %voted.1 ) , !vote2 ( %voted.2 ) , !vote3 ( %voted.3 ) , !vote4 ( %voted.4 )
msg $chan You Can Only Vote Once , So Choose Carfully.
}
elseif ($readini(voted2.ini,VOTED,$address($nick,2) == VOTED)) {
halt
}
elseif ($1 == !vote1) {
writeini voted2.ini VOTED $address($nick,2) VOTED
inc %vote.3
msg $chan You're Voted Has Been Counted Towards ( Voted.1 )
}
elseif ($1 == !vote2) {
writeini voted2.ini VOTED $address($nick,2) VOTED
inc %vote.4
msg $chan You're Voted Has Been Counted Towards ( Voted.2 )
}
elseif ($1 == !vote3) {
writeini voted2.ini VOTED $address($nick,2) VOTED
inc %vote.5
msg $chan You're Voted Has Been Counted Towards ( Voted.3 )
}
elseif ($1 == !vote4) {
writeini voted2.ini VOTED $address($nick,2) VOTED
inc %vote.6
msg $chan You're Voted Has Been Counted Towards ( Voted.4 )
}
}
;commands
;!vote on ( turns it on )
;!vote off ( turns it off)
;!set q <question here>
;!set v1 , v2 , v3 , v4 ( to set the 4 things you want to the question.)
;!start vote ( to start it once u have set it up.)
;!status ( to show status of the vote. )
;!stop vote ( to stop the vurrent vote.)
;!vote 1,2,3,4 ( to put you're vote in ! )
;!votehelp ( to get help with commands )