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.
c
chasingsol
Voice
Posts: 6
Joined: Sun Jul 17, 2005 5:10 pm

Post by chasingsol »

No, it is not. I get the errors from within eggdrop as stated above. Using BDK's it produces a "can't find package rss" error on eggdrop start, despite it being in the same location. I'm sure I'm missing something, but TclRSS allows eggdrop to start, but the feed script itself is erroring.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

*sigh*

I'm going to great lengths to get this thing used by someone other than myself hehehe

follow these steps:
  • go to BDK's rss monitor page and copy the first part of his code, the one that implements rss package (in the first textbox) to a file named rss.tcl
  • create a directory named rss in your home directory
  • copy rss.tcl to that directory
  • fire up tclsh
  • in tclsh, type pkg_mkIndex rss
  • exit tclsh
  • in your eggdrop.conf, add this: lappend auto_path /home/you/rss
  • in the config, source my script
  • rehash the bot
this should do the job, provided you have TclLib and TclXML installed (or ActiveTcl, which has those bundled in it)
c
chasingsol
Voice
Posts: 6
Joined: Sun Jul 17, 2005 5:10 pm

Post by chasingsol »

Ok, BDK's now loaded in eggdrop. BDK's is apparently missing a close bracket somewhere, I klugged it and added one to the end otherwise pkg_mkIndex produced an empty file (other than the comments). Also, current version of 'snit' is 1.0, BDK's rss.tcl referenced 0.9. Perhaps there's too many variables in all this?

Getting a different error with eggdrop now...

Tcl error [::news::timer]: invalid command name "Channel"
Currently: invalid command name "Channel"
Currently: while executing
Currently: "Channel %AUTO%"
Currently: (procedure "rss::parse" line 9)
Currently: invoked from within
Currently: "rss::parse [http::data $token]"
Currently: (procedure "retrieve" line 3)
Currently: invoked from within
Currently: "retrieve $feed"
Currently: ("foreach" body line 6)
Currently: invoked from within
Currently: "foreach {chan feed} [array get feeds] {
Currently: set chan [string tolower $chan]
Currently: if {[lsearch -exact [string tolower [channels]] $chan] == -1..."
Currently: invoked from within
Currently: "if [info exists feeds] {
Currently: foreach {chan feed} [array get feeds] {
Currently: set chan [string tolower $chan]
Currently: if {[lsearch -exact [string t..."
Currently: (procedure "::news::timer" line 4)
Currently: invoked from within
Currently: "::news::timer $_time1 $_time2 $_time3 $_time4 $_time5"
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 are missing something in your Tcl libs, since [Channel] is actually a class (snit package is used to implement this)

I can't advise you further... you might want to experiment with different installations of TclLib and TclXML, standalone or as included in ActiveTcl
j
johne
Voice
Posts: 29
Joined: Tue Jul 19, 2005 2:24 am

Post by johne »

well im a n00b in the area of tcl, but i want this script to work as well :/ ive followed everything you mentioned above, but whenever i go to start it, i get a 'can't find package rss' error, im pretty sure i did everything right cause i have a pkgIndex.tcl in my rss folder :/ any help would be greatly appreciated.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

and you have your rss dir lappend-ed to your auto_path as I described above? and TclLib & TclXML installed as well?
j
johne
Voice
Posts: 29
Joined: Tue Jul 19, 2005 2:24 am

Post by johne »

well i do not have axs to root, is there a way i can see what versions i have installed...i just started using this linux shell about a week ago :D im a pretty fast learner, wish i knew about all this tho
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you don't have to be root, read again the step-by-step guide I posted

also, you can install TclLib and TclXML in your home directory (actually, in the lib subdirectory of your home dir)

but since you are so new to Linux, maybe you should start with simpler things first, and forget about that Tcl package install stuff for now
j
johne
Voice
Posts: 29
Joined: Tue Jul 19, 2005 2:24 am

Post by johne »

im trying to get in touch with the box owner and see if he has those installed, if theyre both installed, it should work flawlessly right? :D
j
johne
Voice
Posts: 29
Joined: Tue Jul 19, 2005 2:24 am

Post by johne »

well i couldnt get it to find the package, so i just sourced it in the tcl...but now i get this error

[20:29] Tcl error in file 'pokerrear.conf':
[20:29] couldn't save command result in variable
while executing
"catch {package require cgraph} version"
(file "/usr/lib/tcllib1.6/struct/graph.tcl" line 2)
(file "/usr/lib/tcllib1.6/struct/struct.tcl" line 2)
("package ifneeded" script)
(file "/home/johne/rss/rss.tcl" line 2)
(file "scripts/rssna.tcl" line 2)
(file "pokerrear.conf" line 2)
[20:29] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

that means TclLib's initialization conflicts with eggdrop's version global variable, since [catch] expects version to be a string but finds out that it's a list

solution: upgrade TclLib, you have an ancient version

come on folks, am I the only one managed to install TclLib & TclXML and made this to work??
j
johne
Voice
Posts: 29
Joined: Tue Jul 19, 2005 2:24 am

Post by johne »

heh, im trying my best...im glad your anxious to see this working as much as i am...ill install a new version and get back with you.
m
mentor
Voice
Posts: 1
Joined: Sat Jul 30, 2005 9:58 am

Post by mentor »

Hi!

I followed this discussion recently, and since it looks to be still active i signed up to take part.

I am trying to install this RSS script aswell and i got easily installed tDOM, TclLib and TclXML under Debian using apt-get as root, but still it says that it couldn't find the package once i launch eggdrop.

Do i have to recompile my eggdrop, or how can i tell the bot where to look for the packages?

Code: Select all

Here's the list of packages i installed:

tclxml_3.0-5.1_i386.deb
tcllib_1.6.1-1_all.deb
tdom_0.7.8-4_i386.deb
My Eggdrop version: Eggdrop v1.6.17

TIA, mentor
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

did you read this?

basically, you need to [lappend] to your auto_path the location of TclLib, TclXML and BDK's package, provided that those have been installed properly, and pkgIndex.tcl file(s) have been created, automatically or otherwise (manually with pkg_mkIndex)
j
johne
Voice
Posts: 29
Joined: Tue Jul 19, 2005 2:24 am

Post by johne »

well 1.6.1 is installed, so i guess thats not the problem...hmmmmmmmmm...you can msg me on efnet @ JNE9000 if you want...i would really like to get this solved :(
Locked