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.

Eggdrop RSS Syndication (rss-synd) v0.5b1

Support & discussion of released scripts, and announcements of new releases.
Post Reply
m
multikon
Voice
Posts: 22
Joined: Sat Jun 19, 2004 10:28 pm

Post by multikon »

problem ...

With Trigger works fine but the autoupdate kills the bot ?!

Errormessage from Log:
tclhsh.c/684 [Tcl proc: ::rss-synd::getFeeds, param: $_time1 $_time2 $_time3 $_time4 $_time5]

Can you made another time-function ?


br, thx & cya
f
fatxy
Voice
Posts: 2
Joined: Mon Sep 04, 2006 9:36 am

Post by fatxy »

hi scotteh

the beta is workin quite well here but i have two smaller probs with it:

1. it seems to have problems with [ ]
2. i didnt change the output line of v2 but i have a space more before the url starts

example:
old: blabla @ http:.....
new: blabla @ _http:.....

code: @@item!title@@ @ \037@@item!link@@\037
s
scotteh
Halfop
Posts: 50
Joined: Sun Jan 29, 2006 12:43 am

Post by scotteh »

Ive updated the script to v0.3 beta 2.

Short ChangeLog:
- Updated parser, more accurate (i hope).
- Gzip support now uses the Trf package.
- Added the option to select the order in which new articles are announced.
- Multiple lined output.
- Improved article checking so it shouldnt announce dupes if the most recent article on the feed was deleted (or buried ala digg).
and quite a bit more i forgot

Download: http://labs.wizzer-it.com/projects/rss- ... -0.3b2.zip

Please email me any bugs you find.
s
scotteh
Halfop
Posts: 50
Joined: Sun Jan 29, 2006 12:43 am

Post by scotteh »

@fatxy

Could you test with the v0.3b2 and see if the problem still exists ?
f
fatxy
Voice
Posts: 2
Joined: Mon Sep 04, 2006 9:36 am

Post by fatxy »

cool i think its workin very well now, no [] problems and no additional blanks

thanks
User avatar
MenzAgitat
Op
Posts: 118
Joined: Tue Jul 04, 2006 12:35 pm
Location: France
Contact:

Post by MenzAgitat »

Nice job, I was expecting the sort option and the multi-lines support with much eagerness.

What about a tinyurl integration ?
s
scotteh
Halfop
Posts: 50
Joined: Sun Jan 29, 2006 12:43 am

Post by scotteh »

I dont plan on adding any tinyurl intergration, but it really wouldnt be to hard to do with your own custom function and the evaluate-tcl option.

something like

function:

Code: Select all

proc tinyurl {url} {
	set post_data [::http::formatQuery "url" $url "submit" "Make TinyURL!"]

	# since this connection is synchronous and blocks, the timeout should be relatively small.
	set token [::http::geturl "http://tinyurl.com/create.php" -query $post_data -timeout 5000]

	set data [::http::data $token]

	regexp -nocase -- {characters:.*?<blockquote><b>(.*?)</b><p>} $data -> url

	return $url
}
example output line:

Code: Select all

output"		"\\\[\002feed\002\\\] @@item!title@@ - \[tinyurl @@item!link@@\]"
Also there is currently a bug in beta 2, triggers typed in channel are only able to notice or privmsg the channel, not the user that typed the trigger. This will be fixed asap.
User avatar
MenzAgitat
Op
Posts: 118
Joined: Tue Jul 04, 2006 12:35 pm
Location: France
Contact:

Post by MenzAgitat »

I dont plan on adding any tinyurl intergration, but it really wouldnt be to hard to do with your own custom function and the evaluate-tcl option.
I already did that in my script a long time ago :wink:

And what about listing all possible feed names for the current chan when someone types !rss without parameter ? (I also did that for my private use, but it would be useful for other people as well).
s
scotteh
Halfop
Posts: 50
Joined: Sun Jan 29, 2006 12:43 am

Post by scotteh »

MenzAgitat wrote:And what about listing all possible feed names for the current chan when someone types !rss without parameter ?
Good idea, ill add that :).
R
RealmMaster
Voice
Posts: 1
Joined: Fri Sep 22, 2006 1:37 pm

Colors

Post by RealmMaster »

Is it possible to have your script display colors? Like for example, have the title of the Feed thats in the brackets be a different color? Thanks.
s
scotteh
Halfop
Posts: 50
Joined: Sun Jan 29, 2006 12:43 am

Post by scotteh »

yep, \003 is the colour code in TCL. so make your output line something like:

Code: Select all

"output" "\[\002\00304@@channel!title@@\003\002\] @@item!title@@ - @@item!link@@"
that would make the title red (04), if your using mIRC press Ctrl+K to check the numbers that relate to each colour. Also make sure the colour part is always 2 digits long, eg: 04 not 4.
A
Alfke
Voice
Posts: 8
Joined: Sat Sep 23, 2006 1:01 pm

Post by Alfke »

Im getting this error from the output: "Your client is not configured for gzip compression" which is required by www.binsearch.info

So I installed the trf package you specified, and the documentation is very poor for trf, so i was wondering what steps can I take to ensure the package is working correctly?

Alfke
T
Tails
Voice
Posts: 5
Joined: Tue Feb 07, 2006 2:06 pm

Post by Tails »

there are some feeds like this one:

http://milw0rm.com/rss.php

and it gives error message which is:
Tcl error [::rss-synd::pub_trigger]: list must have an even number of elements

and also http://www.securiteam.com/securiteam.rss

gives me

Tcl error [::rss-synd::pub_trigger]: can't read "state(url)": no such variable


and when I put those to feedvalidator, they all vaild.....
s
stalix
Voice
Posts: 23
Joined: Tue Sep 13, 2005 6:06 pm

Post by stalix »

I have in the script 10 rss-sites but have a problem some sites also update the notices the first time when load de eggdrop. some solution¿?
A
Alfke
Voice
Posts: 8
Joined: Sat Sep 23, 2006 1:01 pm

Post by Alfke »

I'm also getting that TCL error:

Tcl error [::rss-synd::pub_trigger]: can't read "state(url)": no such variable

Alfke
Post Reply