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.

Info from a text

Old posts that have not been replied to for several years.
Locked
C
CyberGhosT
Voice
Posts: 13
Joined: Thu Nov 20, 2003 5:19 pm

Info from a text

Post by CyberGhosT »

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
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

First, you should read this an after that you should post questions if you don't know something :)
C
CyberGhosT
Voice
Posts: 13
Joined: Thu Nov 20, 2003 5:19 pm

Post by CyberGhosT »

Hi ..
I have read it m8 and i nead help with it :)
CyberGhosT
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

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
}
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Re: Info from a text

Post by Ofloo »

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
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Re: Info from a text

Post by YooHoo »

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 :mrgreen: hope this helps
Last edited by YooHoo on Sun Nov 07, 2004 2:30 pm, edited 1 time in total.
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Re: Info from a text

Post by YooHoo »

:mrgreen: oops, double-posted thread :wink:
C
CyberGhosT
Voice
Posts: 13
Joined: Thu Nov 20, 2003 5:19 pm

Post by CyberGhosT »

]Kami[ Thx bro it was just what i needed... :wink:

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
Locked