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.
CyberGhosT
Voice
Posts: 13 Joined: Thu Nov 20, 2003 5:19 pm
Post
by CyberGhosT » Sun Nov 07, 2004 8:21 am
Hi i nead help..
I nead a tcl script that post somthing that contain in a text file
and it must be a trigger like !info or list....
CyberGhosT
]Kami[
Owner
Posts: 590 Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:
Post
by ]Kami[ » Sun Nov 07, 2004 8:54 am
First, you should read
this an after that you should post questions if you don't know something
CyberGhosT
Voice
Posts: 13 Joined: Thu Nov 20, 2003 5:19 pm
Post
by CyberGhosT » Sun Nov 07, 2004 10:34 am
Hi ..
I have read it m8 and i nead help with it
CyberGhosT
]Kami[
Owner
Posts: 590 Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:
Post
by ]Kami[ » Sun Nov 07, 2004 11:15 am
This should work:
bind pub -|- "!info" pub:info
proc pub:info {nick host hand chan arg} {
set fname [open yourfile.txt r]
while {![eof $fname]} {
set infos [gets $fname]
putquick "PRIVMSG $chan :$infos"
}
close $fname
}
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Sun Nov 07, 2004 1:39 pm
CyberGhosT wrote: Hi i nead help..
I nead a tcl script that post somthing that contain in a text file
and it must be a trigger like !info or list....
i think i don't realy get it do you wana write to a file read from the file or search true the file ?
XplaiN but think of me as stupid
YooHoo
Owner
Posts: 939 Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast
Post
by YooHoo » Sun Nov 07, 2004 2:28 pm
CyberGhosT wrote: Hi i nead help..
I nead a tcl script that post somthing that contain in a text file
and it must be a trigger like !info or list....
Since it seems you have no clue how to write a tcl script, you might wish to take advantage of egghelp's gigantic
tcl archives . I suggest you look at the 27 full-feature 'info' scripts that are
already written just for individuals such as yourself
hope this helps
Last edited by
YooHoo on Sun Nov 07, 2004 2:30 pm, edited 1 time in total.
YooHoo
Owner
Posts: 939 Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast
Post
by YooHoo » Sun Nov 07, 2004 2:28 pm
oops, double-posted thread
CyberGhosT
Voice
Posts: 13 Joined: Thu Nov 20, 2003 5:19 pm
Post
by CyberGhosT » Sun Nov 07, 2004 8:29 pm
]Kami[ Thx bro it was just what i needed...
YooHoo I have looked in the gigantic tcl archive and many tcl scipts have helpt me a lot.. but now i did not find it...But thx fore the tip m8
CyberGhosT