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.
harry
Voice
Posts: 14 Joined: Tue Sep 09, 2003 9:06 pm
Post
by harry » Wed Oct 08, 2003 1:23 pm
how can i make my eggdrop echo txt results to the channel?
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Wed Oct 08, 2003 1:28 pm
Code: Select all
putserv "PRIVMSG #chan :<line of text>"
Have you ever read "The Manual"?
harry
Voice
Posts: 14 Joined: Tue Sep 09, 2003 9:06 pm
Post
by harry » Thu Oct 09, 2003 12:08 am
so this
putserv "PRIVMSG #chan :<line of text>"
putserv "PRIVMSG #mychannel : test.txt"
?
i want the contents of a txt displayed to the channel
i havent tried this but first off i dont even know where i would put this command. so please be more discriptive, sorry and thanks
BarkerJr
Op
Posts: 104 Joined: Sun Mar 30, 2003 1:25 am
Contact:
Post
by BarkerJr » Thu Oct 09, 2003 12:13 am
Ah, you should have specified that you wanted to echo a file's contents to the channel.
set contents [split [exec "cat test.txt"] \n]
foreach line $contents { puthelp "PRIVMSG #mychannel :$line" }
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Thu Oct 09, 2003 12:58 am
or in a more generic fashion (ie. supportive of windrops)
Code: Select all
set contents [split [read [set f [open "test.txt" r]]][close $f] \n]; #borrowed from user ;)
foreach line $contents { puthelp "PRIVMSG #mychannel :$line" }
harry
Voice
Posts: 14 Joined: Tue Sep 09, 2003 9:06 pm
Post
by harry » Thu Oct 09, 2003 2:29 am
set contents [split [read [set f [open "test.txt" r]]][close $f] \n]; #borrowed from user
foreach line $contents { puthelp "PRIVMSG #mychannel :$line" }
thanks but where do i type this at, should i just make a seperate tcl then just copy and paste that?
harry
Voice
Posts: 14 Joined: Tue Sep 09, 2003 9:06 pm
Post
by harry » Fri Oct 10, 2003 9:34 pm
where do i have to put the txt file?
BarkerJr
Op
Posts: 104 Joined: Sun Mar 30, 2003 1:25 am
Contact:
Post
by BarkerJr » Fri Oct 10, 2003 11:18 pm
In the eggdrop directory.
harry
Voice
Posts: 14 Joined: Tue Sep 09, 2003 9:06 pm
Post
by harry » Sat Oct 11, 2003 3:35 am
thank you