Err, two things:
* You should probably remove that @ in the "on @*" part, as it would only trigger if you are an op.
* I think you'll figure it out but I mention it anyway: you should change #mychannel to the channels where you want this to trigger on. For multiple channels, seperate them with commas, for all channels simply put #