Try with this part at the bottom of the file. That one will trigger on ALL text events in the channel. on *:text:*:#:{
* tell it to match everything typed in the channel.
Code:
on *:text:*:#: {
  if ( %skill [ $+ [ $nick ] ] > 0 ) {
    ; Check the value and will go on if more then 0.

    if ($istok(%am,$1,32)) { msg $chan Anti Mage }
    elseif ($istok(%qop,$1,32)) { msg $chan Queen of Pain }
    elseif ($istok(%ss,$1,32)) { msg $chan Shadow Shaman }
    elseif ($istok(%lion,$1,32)) { msg $chan Lion }
    elseif ($istok(%dp,$1,32)) { msg $chan Death Prophet }
    elseif ($istok(%drow,$1,32)) { msg $chan Drow Ranger }
  }
}



if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }