on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
the location can be :?: which matches only in a query window
or :#: to match all channels
or :#channelname: to match 1 channel
or :#chan1,#chan2,#etc: to match 1 or more channels
or :*: to match both queries and channels

Unfortunately the ON TEXT even won't trigger from your own channel messages, so you'd either need a helpful friend, or wait for someone to speak, or else you can install the client in a 2nd folder so you can be 2 nicks speaking to each other. Some channels have had harsh actions against clones, so either ask or do the testing in some kind of #mynickname test channel