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.

Script help needed

Old posts that have not been replied to for several years.
Locked
User avatar
Rusher2K
Halfop
Posts: 88
Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:

Script help needed

Post by Rusher2K »

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

}
s
soul
Voice
Posts: 31
Joined: Fri Apr 25, 2003 6:25 pm
Location: Portugal

Post by soul »

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
User avatar
Rusher2K
Halfop
Posts: 88
Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:

Post by Rusher2K »

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 !
Locked