i would suggest:
;For menus
menu menubar {
Anti-Idle
.On:/timeridle 0 120 anti-idle | Set %anti-idle 1
.Off:/timeridle off | unset %anti-idle
}
;Start script on connect
on *:connect: { if (%anti-idle) { .anti-idle } }
;Aliases
alias anti-idle {
.timeridle 0 120 /raw pong FD411636
}
Hasnt tested, may have some errors, but at least you get the idea.