A quick test using my bot and a debug window indicates that the /knock command sends a Channel Notice, thus using the ON NOTICE event should work.