我想计算已经过去的#ofmessagelines和#amountoftime。
主要剧本:
menu channel {
Announce
.Start: .timerAnnounce. $+ $chan 0 11 msg $chan $$?="Hi msg"
.Stop: .timerAnnounce. $+ $chan off
}
**给出的例子**
ON *:TEXT:*:#: {
if (%announce) {
inc %msgcounter 1
if (%msgcounter >= 10) {
if ($calc($ctime - %announce) >= 600) {
msg #chan YOur msg here
unset %msgcounter
set %announce $ctime
}
}
}
}