If we forget your script for a moment, then channel-specific events can be dealt with via right-clicking the channel button/name and selecting Events...