Actually I think he's looking for something like
Code:
 on *:text:!hi:#channel1:{
.msg #channel2 Hi you all
}
 

The bot/client that runs this code will probably have to be in both channels