| View previous topic :: View next topic |
| Author |
Message |
ZoneISP Voice
Joined: 29 May 2005 Posts: 11 Location: Kuwait
|
Posted: Thu Jul 28, 2005 5:05 pm Post subject: cycle error ! |
|
|
hello this tcl not working perftect only cyclne one channel
i need them ot cycle all channels in bot
| Code: | timer $cycletime cycle
proc cycle {} {
global 4
foreach c [channels] {
putserv "PART $c"; putserv "JOIN $c"; timer $cycletime cycle
}
} | [/code] |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Jul 28, 2005 5:13 pm Post subject: |
|
|
| Code: |
timer $cycletime cycle
proc cycle {} {
foreach c [channels] {
if [botonchan $c] {putserv "part $c"}
}
timer $::cycletime cycle
}
|
you don't need JOIN, the bot will automatically join the channels |
|
| Back to top |
|
 |
|