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.

possible to make eggdrop auto-rehash every x minutes?

Old posts that have not been replied to for several years.
K
Korigon
Voice
Posts: 8
Joined: Tue Aug 02, 2005 4:08 pm

Post by Korigon »

[22:36] couldn't save command result in variable
while executing
"catch {package require cgraph} version"
(file "/usr/local/lib/tcllib1.7/struct/graph.tcl" line 2)
("package ifneeded" script)
(file "/usr/local/lib/tcllib1.7/struct/struct.tcl" line 2)
("package ifneeded" script)
(file "/usr/local/lib/tcl8.4/rss/rss.tcl" line 2)
("package ifneeded" script)
(file "scripts/site-rss.tcl" line 2)
(file "botdestest" line 2)

Same pb with your script Demond

tcl-8.4.11
tcllib-1.7_1
tclxml-2.6
eggdrop v1.6.18+nat-ip-docs (Wed Aug 3 2005)

All stuff there has been done.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

the problem is not with my script but with your TclLib, read my posting above about that; if you run latest TclLib, try to fix its init routine not to use the global variable version
j
johne
Voice
Posts: 29
Joined: Tue Jul 19, 2005 2:24 am

Post by johne »

Korigon if you get it working let me know, im completely lost at what else i can do.
J
JoshuaUK
Voice
Posts: 24
Joined: Sun Aug 07, 2005 11:35 am

Post by JoshuaUK »

ok I am new to all this and I am running Windrop (eggdrop) I am wondering if it will be possible to run this script ok? I am a little confused about how it is configured and where I enter in the RSS feed URLs etc.. and refresh times. Perhaps I need more help, I will see if I can get it to work, tried that other RSS feed .tcl which I don't seem to be getting on with it doesn't seem to be updating and displaying the latest headlines.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

#
# configure it like this:  set feeds(#yourchan) {10 http://slashdot.org/slashdot.rss}
#
#yourchan is the channel you want Slashdot's newslines to show up, 10 is the update frequency in minutes

if you are new to this, you might encounter problems with installing the additional packages needed for this script to work; many supposedly (somewhat) experienced people tried and failed, and it puzzles me why... installing Tcl packages is not rocket science after all
J
JoshuaUK
Voice
Posts: 24
Joined: Sun Aug 07, 2005 11:35 am

Post by JoshuaUK »

So.. I have Windrop on Windows yeah, I have made a directory in the Scripts section of the Windrop directory called RSS, in there is rss.tcl... Now not sure what I need to do next.. I can't do the commands I don't think or don't need to do them?

Sorry for being dumb to this, but I am new with it all, and am very keen to learn to get this RSS thing working on my channel :-)

Do I copy the code you pasted into the Scripts directory and run the bot and see if it works?

copied it and made a file in "C:\Windrop\Scripts\rss_announce.tcl"

I get this error on starting eggdrop

[17:08] Tcl error in file 'eggdrop.conf':
[17:08] can't find package struct 2.0
while executing
"package require struct 2.0"
(file "scripts/rss/rss.tcl" line 3)
invoked from within
"source scripts/rss/rss.tcl"
(file "eggdrop.conf" line 1351)
[17:08] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
J
JoshuaUK
Voice
Posts: 24
Joined: Sun Aug 07, 2005 11:35 am

Post by JoshuaUK »

getting trouble with the RSS.tcl it seems :(
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you need either to learn about Tcl packages (tcl.tk is a good starting point) and then read carefully my previous postings in this thread, or give up for now and postpone using this script until you are knowledgeable enough to be able to install TclLib/TclXML and BDK's package
J
JoshuaUK
Voice
Posts: 24
Joined: Sun Aug 07, 2005 11:35 am

Post by JoshuaUK »

I have installed other TCL scripts before, and edited files, it's just I am trying to understand, as to what I do with the code you pasted in here, it is slightly different for me with Windrop I guess.. I don't want to give up
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

well obviously you haven't installed TclLib, otherwise you wouldn't be getting "can't find package struct 2.0" error (by installed I mean not only installed but properly configured - which is normally done by package's installation script - the package(s) needed for this script to work)

if your answer to the question "Do you know what Tcl package (not script!) is and how to install it?" is "No", then you have to give up for now
J
JoshuaUK
Voice
Posts: 24
Joined: Sun Aug 07, 2005 11:35 am

Post by JoshuaUK »

:-( Well I don't really, which sucks. I am trying to find out about installing suck a package onto Windrop, it isn't quite the same, perhaps I need something like cygwin or something to install the package.. hmm. I'll look into it and see how I go I guess... Might get somewhere with it eventually.
J
JoshuaUK
Voice
Posts: 24
Joined: Sun Aug 07, 2005 11:35 am

Post by JoshuaUK »

could you not make a .zip file or .rar of the directory and how the files should be edited? That may help some people out, so people can have it working and edit the RSS feeds etc.. or is that not possible .
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

which files? there is *ONE* thing that you need to configure, the feeds, and I already explained to you how to do so, although it should be obvious without explanation

as of Tcl package installation, I explained that in my previous postings also, and if you are still unable to grasp it, you should be taking more of your time to RTFM; Cygwin or not, it shouldn't matter, the installation steps are the same
K
Korigon
Voice
Posts: 8
Joined: Tue Aug 02, 2005 4:08 pm

Post by Korigon »

demond wrote:the problem is not with my script but with your TclLib, read my posting above about that; if you run latest TclLib, try to fix its init routine not to use the global variable version
I just edited my /usr/local/lib/tcllib1.7/struct/graph.tcl and commented all version check lines like this :

Code: Select all

#if {                                                
#    ![catch {package require cgraph} version] &&    
#    [package vcompare $version 0.6] > 0             
#} {                                                 
#    # the cgraph package takes over, so we can return
#    namespace eval ::struct {                       
#       namespace import -force graph::*
#    }
#    return
#}
and that loads now but I dont know if it's a good thing, anyway.

With : set feeds(#ty) {10 http://slashdot.org/slashdot.rss} I get Tcl error [::news::timer]: syntaxerror {syntax error: PUBLIC identifier not followed by system literal around line 1}

I missed something?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

when that Tcl error appears, type .set errorInfo and post the output
Locked