| View previous topic :: View next topic |
| Author |
Message |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Jan 22, 2009 7:10 pm Post subject: Re: RSS Eval Error: invalid command name |
|
|
| 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: | 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.
| Code: | | "output" "\\\[\0037RLSLOG\003\\\] - @@item!title@@" |
_________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
BIF Voice
Joined: 31 Jul 2006 Posts: 12
|
Posted: Thu Jan 29, 2009 7:51 pm Post subject: Hmm |
|
|
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 |
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Fri Jan 30, 2009 1:49 am Post subject: |
|
|
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  _________________ I see j00! |
|
| Back to top |
|
 |
waq Voice
Joined: 08 Feb 2009 Posts: 1
|
Posted: Sun Feb 08, 2009 4:04 pm Post subject: |
|
|
RSS Error: Unable to parse feed properly, parser returned error. "http://www.membrana.ru/export/rss.xml"
any suggestion for fix? |
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Sun Feb 08, 2009 4:36 pm Post subject: |
|
|
find a script that works with russian feeds good luck _________________ I see j00! |
|
| Back to top |
|
 |
start Voice
Joined: 13 Feb 2009 Posts: 2
|
Posted: Fri Feb 13, 2009 5:15 pm Post subject: |
|
|
| Can someone show step-by-step on setting up URLS with TinyURL? Thank you! |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Feb 14, 2009 10:01 am Post subject: |
|
|
| 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: | 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
} |
_________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
vBm Voice
Joined: 20 Dec 2008 Posts: 6
|
Posted: Tue Feb 24, 2009 5:40 pm Post subject: |
|
|
Is it possible to 'save' last retrieved data from rss and then after new check ( after defined check time has passed ) to compare it with last chunks ... so if it matches not to display 'em ?
(hope i was clear enough with what i'm trying to do) |
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Tue Feb 24, 2009 6:13 pm Post subject: |
|
|
You want it not to display old data repeatedly is that what you're saying, because if so that would be awesome, I'd like such a feature as it happens quite frequently sometimes :/ _________________ I see j00! |
|
| Back to top |
|
 |
vBm Voice
Joined: 20 Dec 2008 Posts: 6
|
Posted: Tue Feb 24, 2009 7:08 pm Post subject: |
|
|
| wac wrote: | | You want it not to display old data repeatedly is that what you're saying, because if so that would be awesome, I'd like such a feature as it happens quite frequently sometimes :/ |
exactly wac ... i want not to show old data  |
|
| Back to top |
|
 |
eggysoldier Voice
Joined: 25 Feb 2009 Posts: 7
|
Posted: Wed Feb 25, 2009 11:37 am Post subject: |
|
|
Hi,
I was testing out this script and left the default feed/db in place to try it out and get this:
| Code: | [16:29] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
[16:29] RSS Database Error: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
|
Any ideas what's wrong? Does it not make those files automatically? |
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Wed Feb 25, 2009 6:51 pm Post subject: |
|
|
| eggysoldier wrote: | Hi,
I was testing out this script and left the default feed/db in place to try it out and get this:
| Code: | [16:29] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
[16:29] RSS Database Error: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
|
Any ideas what's wrong? Does it not make those files automatically? |
It does, if you would have waited it would have happened automagically... *sigh* _________________ I see j00! |
|
| Back to top |
|
 |
eggysoldier Voice
Joined: 25 Feb 2009 Posts: 7
|
Posted: Wed Feb 25, 2009 10:13 pm Post subject: |
|
|
| wac wrote: | | eggysoldier wrote: | Hi,
I was testing out this script and left the default feed/db in place to try it out and get this:
| Code: | [16:29] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
[16:29] RSS Database Error: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
|
Any ideas what's wrong? Does it not make those files automatically? |
It does, if you would have waited it would have happened automagically... *sigh* |
Well I have been waiting all night now, and am still getting these errors.
Any suggestions? Many thanks for the reply  |
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Wed Feb 25, 2009 11:16 pm Post subject: |
|
|
| eggysoldier wrote: | | wac wrote: | | eggysoldier wrote: | Hi,
I was testing out this script and left the default feed/db in place to try it out and get this:
| Code: | [16:29] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
[16:29] RSS Database Error: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
|
Any ideas what's wrong? Does it not make those files automatically? |
It does, if you would have waited it would have happened automagically... *sigh* |
Well I have been waiting all night now, and am still getting these errors.
Any suggestions? Many thanks for the reply  |
For [censored] sake dude, did you make a feeds directory within the scripts directory? If so which I doubt try to make the path different such as replacing the dot with ~/eggdrop or whatever the name of your folder is... also don't forget to .rehash or .restart _________________ I see j00! |
|
| Back to top |
|
 |
eggysoldier Voice
Joined: 25 Feb 2009 Posts: 7
|
Posted: Thu Feb 26, 2009 6:41 pm Post subject: |
|
|
| wac wrote: | | eggysoldier wrote: | | wac wrote: | | eggysoldier wrote: | Hi,
I was testing out this script and left the default feed/db in place to try it out and get this:
| Code: | [16:29] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
[16:29] RSS Database Error: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
|
Any ideas what's wrong? Does it not make those files automatically? |
It does, if you would have waited it would have happened automagically... *sigh* |
Well I have been waiting all night now, and am still getting these errors.
Any suggestions? Many thanks for the reply  |
For [censored] sake dude, did you make a feeds directory within the scripts directory? If so which I doubt try to make the path different such as replacing the dot with ~/eggdrop or whatever the name of your folder is... also don't forget to .rehash or .restart |
Thank you, that worked like a charm! |
|
| Back to top |
|
 |
|