I don't know if this is possible, as the on text event requires the information to already be posted to the channel in order to be recognized via the event.
The only way that I can see this being possible is if it was scripted at the server level, therefor catching the text before it was sent to the channel.