Hi All,

I want to have a new alias that can check for the following.
My bot joins several channels when it connects.
When it joins those channels, it will set appropriate channel modes.

Whenever the bot doesn't join any of these channels, I want it to inform me.
Additionally, when it fails to set these channel modes, it needs to inform me as well.

Does anyone have idea's for this?

My current code is:
Code:
set %channels #channel1,#channel2,#channel3,#channel4,#channel5,#channel6

alias join-channels {
  var %cnt = 1
  var %ttl = $numtok(%channels,44)
  while (%cnt <= %ttl) {
    var %chan = $gettok(%channels,%cnt,44)
    .timer 1 3 join %chan
    .timer 1 4 mode %chan +is
    inc %cnt
  }
}