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.
Old posts that have not been replied to for several years.
tonyrayo
Voice
Posts: 20 Joined: Thu Jul 31, 2003 3:29 pm
Location: Waldorf, MD
Contact:
Post
by tonyrayo » Sun Aug 03, 2003 6:53 pm
hey guys (and those rare but special tcl gals =p). first off, thx for the help so far, i'm picking up a book on tcl this week, and maybe come out with some decent scripts!
there is a two part question, and of course any help would be great. first off is there any way to delay onjoin of a channel?
second, the reason i want this delay is because i want my bot to be able to send a message to the irc server (/vhost username password), this would allow my bot to obtain a vhost, and the delay is so it joins with the host already changed. mucho thx!!!
-tony
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sun Aug 03, 2003 7:03 pm
Using something like:
Code: Select all
bind evnt - init-server my:connect:stuff
proc my:connect:stuff init-server {
# my vhost stuff goes here
}
you can make it do the *stuff* upon connecting to server and using something like:
Code: Select all
foreach chan [chanlist] {
if {[channel get $chan inactive]} {
continue
}
channel set $chan +inactive
}
utimer 5 uninactive
proc uninactive {} {
foreach chan [chanlist] {
if {![channel get $chan inactive]} {
continue
}
channel set $chan -inactive
}
}
something like this anyway.. haven't tested it but it should work on a .13+ with no problems.
Once the game is over, the king and the pawn go back in the same box.
BarkerJr
Op
Posts: 104 Joined: Sun Mar 30, 2003 1:25 am
Contact:
Post
by BarkerJr » Sun Aug 03, 2003 10:47 pm
use putquick to have it do the command before joining channels, putserv to do the command afterwards.
tonyrayo
Voice
Posts: 20 Joined: Thu Jul 31, 2003 3:29 pm
Location: Waldorf, MD
Contact:
Post
by tonyrayo » Mon Aug 04, 2003 1:37 am
*glares blankly into the screen* thx! i will try and figure out how to put this knowledge into a script
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Mon Aug 04, 2003 8:47 am
A lil note. add a -next to make it be *processed* first.
Once the game is over, the king and the pawn go back in the same box.