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.

have a tcl but dont work

Old posts that have not been replied to for several years.
Locked
S
Shinjiko

have a tcl but dont work

Post by Shinjiko »

hi ,
i am new i come from germany also sorry for my english.
okay i have a tcl script but dont work the error is unkown command the script is :

Code: Select all

#################################
#################################
#TCL-Script für den Bot:
#################################
utimer 10 newthreads

proc newthreads { } {
set forumfile [open http://your.site.com/vbb/tmp/newthread.dat r]
while {![eof $forumfile]} {
gets $forumfile lalala
if {$lalala != ""} { puthelp "PRIVMSG #yourchannel :$lalala!" }
}
close $forumfile
set forumfile [open http://your.site.com/vbb/tmp/newthread.dat w]
puts $forumfile ""
close $forumfile
utimer 10 newthreads
}
#################################
#################################
the script is not working , what´s wrong ?!
i will when people make a new topic/Thread , the eggdrop post in my channel , i need the right script ... when you have it please tell me

Big ThankZ
P.S.: [20:00] TCL error in script for 'timer21':
[20:00] couldn't open "http://your.site.com/tmp/newthread.dat": no such file or directory
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

i wasnt awere that you could open a remote file for reading and writing in that fashion... maybe im a complete noob but i dont think its possible
photon?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

No.

Tcl doesn't support opening files remotly like this.

You would need to use a HTT package, like, the http package, supplied with Tcl.
Locked