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.
Rusher2K
Halfop
Posts: 88 Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:
Post
by Rusher2K » Sun Jul 27, 2003 6:15 am
hello, can you help me ? i wat that this script catch the site after start of eggdrop every 30 mins and if the [--Sendeplan--] quits ! who can help me ?
Code: Select all
package require http
bind sign - "#sound \[--Sendeplan--\]!*@*.*" quit
set url "http://www.scooter-ibb.de/sound"
proc quit {nick uhost hand chan reson} {
global url
putlog "SendePlan Restarted !!!"
catch {set t [::http::geturl http://www.scooter-ibb.de/sound/ -timeout 3000]} err; if {$err=="couldn't open socket: host is unreachable" || [string match {Unsupported URL: *} $err match]} {return "error1"}; if {$err=="couldn't open socket: connection refused"|| [::http::status $t]=="timeout"} {return "error2"}; ::http::cleanup $t
}
soul
Voice
Posts: 31 Joined: Fri Apr 25, 2003 6:25 pm
Location: Portugal
Post
by soul » Tue Jul 29, 2003 6:40 am
package require http
bind sign - "#sound \[--Sendeplan--\]!*@*.*" quit
set url "
http://www.scooter-ibb.de/sound "
proc quit {nick uhost hand chan reason} {
global url
putlog "SendePlan Restarted !!!"
timer 30 catch
catch {set t [::http::geturl
http://www.scooter-ibb.de/sound/ -timeout 3000]} err; if {$err=="couldn't open socket: host is unreachable" || [string match {Unsupported URL: *} $err match]} {return "error1"}; if {$err=="couldn't open socket: connection refused"|| [::http::status $t]=="timeout"} {return "error2"}; ::http::cleanup $t
}
i
Rusher2K
Halfop
Posts: 88 Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:
Post
by Rusher2K » Tue Jul 29, 2003 3:48 pm
But in this script the bot make this only when the othe rbot has already quit !!! I muste be after start in an interval of 30 mins and when the bot quits !