Ok. Try testing this code:
Code
on *:TEXT:*:#channel:{
  if ($nick == ServicesBot && $1 == !ON) || ($nick == PLUTO) { return }
  if (!$hget(pluto,work)) { .hadd -m pluto work true }
  if ($hget(pluto,work) == true) { pluto_stop $chan }
  if ($hget(pluto,work) == false) { .timerPLUTOSTART 1 1200 pluto_start $chan }
}
alias -l pluto_start { .hadd -m pluto work true | bs say $1 !ON }
alias -l pluto_stop { .hadd -m pluto work false | bs say $1 !OFF }

Note:

  • Change the nick "ServicesBot" in the code to the nick of your service bot, which is present on the channel and will write commands "!ON" and "!OFF".
  • You can change the 1200 secs = (20 mins) specified for the timer named "PLUTOSTART" to any other time in seconds.


🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples