Code:
on *:text:*!test*:#: {
  if (!%LineLimit) || (%LineLimit == off) {
    msg $chan test
    LineCount
  }
}


I have no idea whether that script was written specifically with Twitch in mind, but having looked at the code I think the above is how you should be using it.