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 

Eggdrop RSS Syndication (rss-synd) v0.5b1
Goto page Previous  1, 2, 3, 4, 5 ... 25, 26, 27  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
multikon
Voice


Joined: 19 Jun 2004
Posts: 22

PostPosted: Tue Aug 15, 2006 1:42 pm    Post subject: Reply with quote

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


Joined: 04 Sep 2006
Posts: 2

PostPosted: Mon Sep 04, 2006 9:44 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
scotteh
Halfop


Joined: 29 Jan 2006
Posts: 50

PostPosted: Tue Sep 12, 2006 8:20 am    Post subject: Reply with quote

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-synd/rss-synd-0.3b2.zip

Please email me any bugs you find.
Back to top
View user's profile Send private message
scotteh
Halfop


Joined: 29 Jan 2006
Posts: 50

PostPosted: Tue Sep 12, 2006 8:28 am    Post subject: Reply with quote

@fatxy

Could you test with the v0.3b2 and see if the problem still exists ?
Back to top
View user's profile Send private message
fatxy
Voice


Joined: 04 Sep 2006
Posts: 2

PostPosted: Tue Sep 12, 2006 7:24 pm    Post subject: Reply with quote

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

thanks
Back to top
View user's profile Send private message
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Wed Sep 13, 2006 7:20 pm    Post subject: Reply with quote

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

What about a tinyurl integration ?
Back to top
View user's profile Send private message Visit poster's website
scotteh
Halfop


Joined: 29 Jan 2006
Posts: 50

PostPosted: Thu Sep 14, 2006 4:28 am    Post subject: Reply with quote

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


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Thu Sep 14, 2006 7:21 am    Post subject: Reply with quote

Quote:
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).
Back to top
View user's profile Send private message Visit poster's website
scotteh
Halfop


Joined: 29 Jan 2006
Posts: 50

PostPosted: Thu Sep 14, 2006 11:16 am    Post subject: Reply with quote

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


Joined: 22 Sep 2006
Posts: 1

PostPosted: Fri Sep 22, 2006 1:42 pm    Post subject: Colors Reply with quote

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


Joined: 29 Jan 2006
Posts: 50

PostPosted: Fri Sep 22, 2006 2:56 pm    Post subject: Reply with quote

yep, \003 is the colour code in TCL. so make your output line something like:
Code:
"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.
Back to top
View user's profile Send private message
Alfke
Voice


Joined: 23 Sep 2006
Posts: 8

PostPosted: Sat Sep 23, 2006 1:11 pm    Post subject: Reply with quote

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


Joined: 07 Feb 2006
Posts: 5

PostPosted: Sun Sep 24, 2006 1:35 pm    Post subject: Reply with quote

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


Joined: 13 Sep 2005
Posts: 23

PostPosted: Mon Sep 25, 2006 9:45 am    Post subject: Reply with quote

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


Joined: 23 Sep 2006
Posts: 8

PostPosted: Tue Nov 21, 2006 2:19 pm    Post subject: Reply with quote

I'm also getting that TCL error:

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

Alfke
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3, 4, 5 ... 25, 26, 27  Next
Page 4 of 27

 
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