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.

Work This ? I Hope :)

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:

Work This ? I Hope :)

Post by Rusher2K »

Work this :

Code: Select all

set time 15


set a "$botnick"
set a [string tolower "$nick"]

if {![info exists ald]} {
set ald 1
timer $time go
}

proc go {} {
global a channel time text

putlog "SendePlan Restarting !!!"
set url http://www.scooter-ibb.de/sound/
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 $
putlog "SendePlan Restarted !!!"

timer $time go


}
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

set a "$botnick"
set a [string tolower "$nick"]
I think this is wrong
it should be:
set a [string tolower "$nick"]
then u should add an if statement like if {$a == $::botnick} {....
User avatar
Rusher2K
Halfop
Posts: 88
Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:

Post by Rusher2K »

It was a Adv on Time script that i hade edit my ask was if the code works ;) that he catch the site every 30 mins :)
Locked