How would I go about writing a line of code to auto part and rejoin the channel after an hour?

Would this work?

/timer1 0 3600 { /part #channel [ $| ] /join #channel }

I'm not sure the [ $| ] part is right, but I'm trying to get it to also execute the /join command on the same timer line.