on *:TEXT:>vacstart:#: {
if (%pers.times < 1) && ($nick == jadester_) { %vac.times = 0 | %pers.times = 0 | .timerVac 0 1 inc %pers.times | .msg $chan VAC/second count started, type >vaccount for results. }
elseif (%persg.times < 1) && ($nick != jadester_) { %vacg.times = 0 | %persg.times = 0 | .timergVac 0 1 inc %persg.times | .msg $chan Guest: VAC/second count started, type >vaccount for results. }
else msg $chan A VAC count is already in progress. Type ">vaccount" to end current count and get results.
}
on *:TEXT:>vacbot:#: {
msg $chan Hello, I'm VAC Bot! I was developed by Jadester_ to see the exact number of VACs/second spammed in chat. To use this bot type ">vacstart" to begin the count and ">vaccount" to end it and get results. You can also get the source code from VAC_Bot's channel title.
}
on *:TEXT:>ping:#: {
msg $chan Pong OMGScoots ?
}
on *:TEXT:>vaccount:#: {
if (%pers.times > 1) && ($nick == jadester_) { msg $chan VAC has been been spammed %vac.times times in the last %pers.times seconds, or more precisely $calc(%vac.times / %pers.times) VACs/second. | .timerVac off | %vac.times = 0 | %pers.times = 0 }
elseif (%persg.times > 1) && ($nick != jadester_) { msg $chan Guest: VAC has been been spammed %vacg.times times in the last %persg.times seconds, or more precisely $calc(%vacg.times / %persg.times) VACs/second. | .timerVacg off | %vacg.times = 0 | %persg.times = 0 }
else msg $chan A VAC count hasn't been started yet. Type ">vacstart" to begin the count, then type ">vaccount" to get results.
}
on *:text:vac:#: {
inc %vac.times
inc %vacg.times
}
on *:text:>debug:#: {
msg $chan vac: %vac.times pers: %pers.times vacg: %vacg.times persg: %persg.times $+ .
}
on *:text:>commands:#: {
msg $chan VAC Bot's commands are: >vacbot, >vacstart, >vaccount, >ping, >commands and >debug.
}