mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
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.


I registered; you should too.
Joined: Nov 2006
Posts: 143
X
Vogon poet
Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
/timer1 0 3600 { /part #channel | /join #channel }
but the 0 means will work every an hour
if u want it work only one time u need set it 1

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
If you're parting then joining the same channel, use the /hop command, rather than part & join.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Experience has shown me that commands after a pipe in a timer are not restricted by the timer, but, rather, get executed immediately.

Code:
/timer1 0 3600 hop #channel
would be the best bet to part then join the same channel every hour.


Joined: Nov 2006
Posts: 143
X
Vogon poet
Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
also can be /cycle #channel :P


Link Copied to Clipboard