Hello! I would like some help with creating a script that sends a chatline into a channel every 15 sec. Because I get disconnected alot, due to my isp I think this would help to actually disconnect me from the network so I can rejoin right away. Instead of being disconnected, when everything looks fine. To find out 10 minutes later that I've been disconnected the whole time, and thus not recieved any sent chat lines from other people.
to ensure that you are able to send a message to the channel. Also remember to turn the timer off if you leave the channel, or you could end up with a mess of "Can not send to #channel-X" messages in your status window.
Could be you were just impatient. When a timer starts, the command on the timer (in this case the message) doesn't go out immediately, but after the specified delay (in this case, 15 seconds).
to ensure that you are able to send a message to the channel. Also remember to turn the timer off if you leave the channel, or you could end up with a mess of "Can not send to #channel-X" messages in your status window.
What on Earth does that do?
Code:
on 1:CONNECT: {
; use an online timer to send some raw junk
; this junk -should- get echoed back by the server pretty quickly
.timer 0 5 raw NOOP
.timerTIMEOUT 1 30 server
}
; numeric for the "unknown command" response
raw 421:*: {
if ($2 == NOOP) {
; if we recieve the junk, reset the timeout timer so as long as the connection is healthy, it should never reconnect ;)
.timerTIMEOUT 1 30 server
}
}