This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

cycle error !

Old posts that have not been replied to for several years.
Locked
Z
ZoneISP
Voice
Posts: 11
Joined: Sun May 29, 2005 4:50 pm
Location: Kuwait
Contact:

cycle error !

Post by ZoneISP »

hello this tcl not working perftect only cyclne one channel
i need them ot cycle all channels in bot

Code: Select all

timer $cycletime cycle
proc cycle {} {
  global 4
  foreach c [channels] {
    putserv "PART $c"; putserv "JOIN $c"; timer $cycletime cycle
  }
}
[/code]
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

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
Locked