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
d
drjoeward
Voice
Posts: 2
Joined: Fri Dec 19, 2008 7:29 pm

Post by drjoeward »

Yunabeco wrote:For some reason the bot doesn't want to create the db file and tells me it doesn't exist. Folder is there, and permissions seem to be all right. Are there any other requirements?
when I was setting this all up, i had an issue with the url. seems it does not like non standard ports. fortunately It is my feed I'm trying to pull so I could monitor both sides. I noted when I had this problem of not creating the db, it was simply that the rss feed was not being retrieved.
w
warbox
Voice
Posts: 1
Joined: Mon Dec 29, 2008 2:41 am

Post by warbox »

Hello all...

i dont know what happen...

when i try to use that TCL i got this everytime:
[02:35] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
can someone help me with this TCL please!
j
jombob
Voice
Posts: 3
Joined: Tue Jan 20, 2009 4:28 pm

Post by jombob »

Hello,

i got a problem with the script. When i try to use a https-feed the feed doesn't work. The failure-code when i try to start the bot is:

Eggdrop v1.6.18+SSL (C) 1997 Robey Pointer (C) 2006 Eggheads
[21:26] --- Loading eggdrop v1.6.18+SSL (Tue Jan 20 2009)
[21:26] Listening at telnet port xxxxx (all).
[21:26] Module loaded: dns
[21:26] Module loaded: channels
[21:26] Module loaded: server
[21:26] Module loaded: ctcp
[21:26] Module loaded: irc
[21:26] Module loaded: notes (with lang support)
[21:26] Module loaded: console (with lang support)
[21:26] Module loaded: blowfish
[21:26] Module loaded: uptime
[21:26] RSS Error: Unable to find tls package required for https, unloaded feed "MYrss".
[21:26] RSS Syndication Script v0.4 (2007-02-08): Loaded.
[21:26] Userfile loaded, unpacking...

Does someone know how to fix this? I've already installed the libgnutls-dev for my debian etch bot it won't work. I dont't know how to go on...

Greetz and thx for your help
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

j
jombob
Voice
Posts: 3
Joined: Tue Jan 20, 2009 4:28 pm

Post by jombob »

Wow, thank you! It works, but now i get this:

Tcl error [::rss-synd::pub_trigger]: list must have an even number of elements

How can i solve this?
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

I think he's on 0.5b1 last I checked.. might want to upgrade (first page/post).
j
jombob
Voice
Posts: 3
Joined: Tue Jan 20, 2009 4:28 pm

Post by jombob »

Thats strange. Now i use the newest rss.tcl but now i get this:

Tcl error [::rss-synd::trigger]: list must have an even number of elements

My config for the rss is this:

set rss(Myrss) {
"url" "https://url/rss.php"
"output" "[\00315\002new Thread:\002\003\] - \00304\002@@item:title@@\002\003\ - [\00315\002URL\002\003\] \00307@@i$
"database" "./scripts/feeds/rss.db"
"trigger" "!neu"
"channels" "#public-chan"
}
f
flufsor
Voice
Posts: 4
Joined: Thu Jan 22, 2009 6:45 pm

RSS Eval Error: invalid command name

Post by flufsor »

Hey,
I hoped you guys could help me with this,
the bot works but on trigger it keeps spamming me this:
RSS Eval Error: invalid command name "RLSLOG"
but it don't know why. Sad
here is my config http://pastebin.ca/1315788
Ow yeah i wonder to that if there is a code change to make the trigger respond in private msg to prevent spam on the main channel.

Thx anyway guys
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Re: RSS Eval Error: invalid command name

Post by speechles »

flufsor wrote:Hey,
I hoped you guys could help me with this,
the bot works but on trigger it keeps spamming me this:
RSS Eval Error: invalid command name "RLSLOG"
but it don't know why. Sad

Code: Select all

	set rss(rlslog) {
		"url"			  "http://feeds2.feedburner.com/releaselog"
		"channels"		"#rlslog"
		"database"   	"./scripts/feeds/rlslog.db"
		"output"        "\[\0037RLSLOG\003\] - @@item!title@@"
		"trigger"       "!@@feedid@@"
		"evaluate-tcl"  1
	}
The above code is your problem. You've escaped the brackets, sure. But you haven't made the escapes safe for re-evaluation. To make them safe you must escape the escape, which because it's an escape you must escape again. To make it work, simply change part to look like it does below. :wink:

Code: Select all

"output"        "\\\[\0037RLSLOG\003\\\] - @@item!title@@"
B
BIF
Voice
Posts: 12
Joined: Mon Jul 31, 2006 4:53 pm

Hmm

Post by BIF »

Id like to Display the 5 latest posts. without having to use the public trigger all the time. Is there a way to make it display the last 5 at the given update interval ? I would like this much better.
Even if there is no new posts i would like it to still display the last 5. Thanks
User avatar
wac
Halfop
Posts: 80
Joined: Sun Dec 10, 2006 1:22 am
Location: in my cardboard box

Post by wac »

use a timer to trigger for that particular feed, how to do this, I dunno, to lazy to find out, but mostly cause I don't need such a thing, read up on binds and such... good luck :D
I see j00!
w
waq
Voice
Posts: 1
Joined: Sun Feb 08, 2009 1:19 pm

Post by waq »

RSS Error: Unable to parse feed properly, parser returned error. "http://www.membrana.ru/export/rss.xml"


any suggestion for fix?
User avatar
wac
Halfop
Posts: 80
Joined: Sun Dec 10, 2006 1:22 am
Location: in my cardboard box

Post by wac »

find a script that works with russian feeds ;) good luck
I see j00!
s
start
Voice
Posts: 2
Joined: Fri Feb 13, 2009 5:11 pm

Post by start »

Can someone show step-by-step on setting up URLS with TinyURL? Thank you!
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

start wrote:Can someone show step-by-step on setting up URLS with TinyURL? Thank you!
"evaluate-tcl" 1
"output" "\\\[\002@@channel!title@@@@title@@\002\\\] @@entry!title@@ - \[maketiny @@entry!link@@\]"
---or---
"output" "\\\[\002@@channel!title@@@@title@@\002\\\] @@item!title@@ - \[maketiny @@item!link@@\]"

You need to set evaluate-tcl as 1. Then within output you must triple escape all []'s that are not commands (any used for formatting only must be triple escaped). Then escape the \[maketiny \] ones only once, it can work. Then you simply add this procedure to the bottom of the script.

Code: Select all

proc maketiny {url} {
   set ua "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5"
   set http [::http::config -useragent $ua]
   set token [http::geturl "http://tinyurl.com/api-create.php?[http::formatQuery url $url]" -timeout 3000]
   upvar #0 $token state
   if {[string length $state(body)]} { return $state(body) }
   return $url
}
Post Reply