I need to send a command every time MY client joins a channel. So far, I can't seem to figure out exactly how to make it recognize me as having joined the channel and in turn send the command. This is the command I've been trying to make work:

}
on *:join:#: {
if ($nick == $me) {
who $chan
.timerSENDCMD 1 3 <command>
}
}

Can anyone help me get this working?

Thanks.