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.

MTV.com TCL Script

Old posts that have not been replied to for several years.
Locked
h
hypo

Post by hypo »

Hi,

i am searching for a TCL script that would take news headlines from http://www.mtv.com/news/ and paste them into a channel, like does the cnn.com tcl script .
But i can't find a script like this anywhere ..

Someone knows about it ?

Thx for you answers :smile:
h
hypo

Post by hypo »

hey,
i wonder if Ycarus could help me with this script ? we all know you are the best around :smile:
Y
Ycarus

Post by Ycarus »

lol.
Yes, I will help you :smile:

I have a script for that. I will put it here this evening :smile:

Ycarus
yews@ifrance.com
http://yews.fr.st/
Y
Ycarus

Post by Ycarus »

The script is Klip Irc News.
With this script you can have more than 3000 sources of news (in all languages) !
This script use Klip file and/or services list (in xml, opml and rss file format).

There is in the .tar.gz file one XML Service List with 1900 news sites.

There is the site MTV in the xml and now there is a cmd !mtv to see the news of MTV :smile:

You can download it here :
http://xerus.dns2go.com:81/~yannick/htm ... etit&lid=3

Ycarus
yews@ifrance.com
http://yews.fr.st/

<font size=-1>[ This Message was edited by: Ycarus on 2002-06-06 15:09 ]</font>
h
hypo

Post by hypo »

hi Ycarus,
thx a lot for your help.
i installed the script, i put the ftp.tcl, servicelist.xml, http.tcl, and klipircnews.tcl in my script directory of my eggdrop. And then i changed my .conf file to add the source /scripts... for those scripts.
but when i run my eggdrop, it tells me :

[05:48] Tcl error in file '*****.conf':
[05:48]: command not found
bash-2.05$
[05:48] can't find package ftp while executing
>"package require ftp"
>(file "scripts/klipircnews.tcl" line 201)
>invoked from within
>"source scripts/klipircnews.tcl"
>(file "*****.conf" line 183)
> [05:48] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)

Can you help me one more time ? cause i dont know what's going on :smile:
thx.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Make sure you place the line
source scripts/klipircnews.tcl
after all the other scripts, this should fix the problem.

If not, then the ftp.tcl file has been edited, and requires the following line of code.

Code: Select all

package provide ftp
Place that before the line
source scripts/klipircnews.tcl
and it should solve the problem.

Yet, this is only if the ftp.tcl you have downloaded, is the correct one for this script.
Y
Ycarus

Post by Ycarus »

ppslim is right. You have to put "source scripts/http.tcl" and "source scripts/ftp.tcl" before "source scripts/klipircnews.tcl".

The correct ftp.tcl is in the klipircnews.tar.gz package. But all "ftp.tcl" from the tcllib 1.x distribution should work very well.

Ycarus
yews@ifrance.com
http://yews.fr.st/
h
hypo

Post by hypo »

it works very fine !!

thx a lot !! :smile:
b
blacker

Post by blacker »

hello im tryign to get klip news running and get this...

[14:06] invalid command name "<?xml"
while executing
"<?xml version="1.0" encoding="ISO-8859-1" ?> "
(file "scripts/servicelist.xml" line 1)
invoked from within
"source scripts/servicelist.xml"
(file "blacker.conf" line 1321)
[14:06] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)

where do i put the servicelist.xml to load it?
thanks
Y
Ycarus

Post by Ycarus »

You shouldn't put the .xml file in your. conf file :smile: The .xml is only a list of news channel , not a script. You only have to put the .tcl in the .conf file.

Ycarus
yews@ifrance.com
http://yews.fr.st/
b
blacker

Post by blacker »

yea when i try that it says servicelist.xml cant be found or something like that..
so im not sure where to put it..
Y
Ycarus

Post by Ycarus »

you can put here where you want, you just have to change the path in the .tcl file.
If you change nothing, you can put the .xml in the same directory as the eggdrop binary.

Ycarus
yews@ifrance.com
http://yews.fr.st/
Locked