when i tested the pizzatimer i am working on atm i came across something strange: when i set the timer to 1 minute eggdrop will execute the command after 40something seconds. is that normal? how do i change it if it isn't?
siyb
bind pub - ${comchar}${xtimercom1} xtimer
##proc:xtimer##
proc xtimer {nick host hand chan text} {
set text [split $text " "]
set xtda [lindex $text 0]
set xtmsg [lindex $text 1]
set tmsg "$xtmsg"
set minutes "$xtda"
timer $minutes [list puthelp "PRIVMSG $nick :\0034TIMERARLARM!!!: \0030$xtmsg ist fertig!"]
putquick "PRIVMSG $nick :Dein Timer für \"$xtmsg\" wurde auf $minutes Minuten gestellt. Ich werde dir rechtzeitig bescheid geben."
putlog "xtimer set by $nick on $chan"
}
Code: Select all
set seconds [expr $minutes * 60]
Code: Select all
utimer [expr $minutes * 60] [list puthelp "PRIVMSG $nick :\0034TIMERARLARM!!!: \0030$xtmsg ist fertig!"]