egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

possible to make eggdrop auto-rehash every x minutes?
Goto page Previous  1, 2, 3, 4  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
chasingsol
Voice


Joined: 17 Jul 2005
Posts: 6

PostPosted: Sun Jul 17, 2005 9:33 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Jul 17, 2005 9:44 pm    Post subject: Reply with quote

*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)
Back to top
View user's profile Send private message Visit poster's website
chasingsol
Voice


Joined: 17 Jul 2005
Posts: 6

PostPosted: Sun Jul 17, 2005 10:17 pm    Post subject: Reply with quote

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"

Quote:
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"
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Jul 17, 2005 10:41 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
johne
Voice


Joined: 19 Jul 2005
Posts: 29

PostPosted: Tue Jul 19, 2005 2:27 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Jul 19, 2005 3:29 am    Post subject: Reply with quote

and you have your rss dir lappend-ed to your auto_path as I described above? and TclLib & TclXML installed as well?
Back to top
View user's profile Send private message Visit poster's website
johne
Voice


Joined: 19 Jul 2005
Posts: 29

PostPosted: Tue Jul 19, 2005 6:20 pm    Post subject: Reply with quote

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 Very Happy im a pretty fast learner, wish i knew about all this tho
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Jul 19, 2005 7:52 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
johne
Voice


Joined: 19 Jul 2005
Posts: 29

PostPosted: Tue Jul 19, 2005 11:24 pm    Post subject: Reply with quote

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? Very Happy
Back to top
View user's profile Send private message
johne
Voice


Joined: 19 Jul 2005
Posts: 29

PostPosted: Fri Jul 29, 2005 8:34 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Jul 29, 2005 11:48 pm    Post subject: Reply with quote

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??
Back to top
View user's profile Send private message Visit poster's website
johne
Voice


Joined: 19 Jul 2005
Posts: 29

PostPosted: Sat Jul 30, 2005 12:39 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
mentor
Voice


Joined: 30 Jul 2005
Posts: 1

PostPosted: Sat Jul 30, 2005 10:11 am    Post subject: Reply with quote

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:
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
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Jul 30, 2005 10:58 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website
johne
Voice


Joined: 19 Jul 2005
Posts: 29

PostPosted: Sat Jul 30, 2005 4:46 pm    Post subject: Reply with quote

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 Sad
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber