View previous topic :: View next topic |
Author |
Message |
multikon Voice
Joined: 19 Jun 2004 Posts: 22
|
Posted: Tue Aug 15, 2006 1:42 pm Post subject: |
|
|
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 |
|
 |
fatxy Voice
Joined: 04 Sep 2006 Posts: 2
|
Posted: Mon Sep 04, 2006 9:44 am Post subject: |
|
|
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 |
|
 |
scotteh Halfop
Joined: 29 Jan 2006 Posts: 50
|
Posted: Tue Sep 12, 2006 8:20 am Post subject: |
|
|
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 |
|
 |
scotteh Halfop
Joined: 29 Jan 2006 Posts: 50
|
Posted: Tue Sep 12, 2006 8:28 am Post subject: |
|
|
@fatxy
Could you test with the v0.3b2 and see if the problem still exists ? |
|
Back to top |
|
 |
fatxy Voice
Joined: 04 Sep 2006 Posts: 2
|
Posted: Tue Sep 12, 2006 7:24 pm Post subject: |
|
|
cool i think its workin very well now, no [] problems and no additional blanks
thanks |
|
Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Wed Sep 13, 2006 7:20 pm Post subject: |
|
|
Nice job, I was expecting the sort option and the multi-lines support with much eagerness.
What about a tinyurl integration ? |
|
Back to top |
|
 |
scotteh Halfop
Joined: 29 Jan 2006 Posts: 50
|
Posted: Thu Sep 14, 2006 4:28 am Post subject: |
|
|
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 |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Thu Sep 14, 2006 7:21 am Post subject: |
|
|
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
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 |
|
 |
scotteh Halfop
Joined: 29 Jan 2006 Posts: 50
|
Posted: Thu Sep 14, 2006 11:16 am Post subject: |
|
|
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 . |
|
Back to top |
|
 |
RealmMaster Voice
Joined: 22 Sep 2006 Posts: 1
|
Posted: Fri Sep 22, 2006 1:42 pm Post subject: Colors |
|
|
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 |
|
 |
scotteh Halfop
Joined: 29 Jan 2006 Posts: 50
|
Posted: Fri Sep 22, 2006 2:56 pm Post subject: |
|
|
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 |
|
 |
Alfke Voice
Joined: 23 Sep 2006 Posts: 8
|
Posted: Sat Sep 23, 2006 1:11 pm Post subject: |
|
|
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 |
|
 |
Tails Voice
Joined: 07 Feb 2006 Posts: 5
|
Posted: Sun Sep 24, 2006 1:35 pm Post subject: |
|
|
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 |
|
 |
stalix Voice
Joined: 13 Sep 2005 Posts: 23
|
Posted: Mon Sep 25, 2006 9:45 am Post subject: |
|
|
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 |
|
 |
Alfke Voice
Joined: 23 Sep 2006 Posts: 8
|
Posted: Tue Nov 21, 2006 2:19 pm Post subject: |
|
|
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 |
|
 |
|