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.

perplexa's rssnews

Support & discussion of released scripts, and announcements of new releases.
Post Reply
j
janipewter
Voice
Posts: 16
Joined: Sun Jan 22, 2006 8:59 pm

perplexa's rssnews

Post by janipewter »

Ok, I stuck this script on my eggdrop and when I rehashed it said I needed TCL 8.4 or higher to work, so I've installed TCL 8.4 now and rehashed/restarted the bot, and it still says the same.
[08:32] You don't have TCL 8.4, you have to upgrade to version 8.4 or higher to use rss.tcl.
I'm guessing it's because I've installed TCL 8.4 in my home directory rather than /usr/bin or whatever the default is, because I don't have root. Is there anyway to make it point to /home/janipewter/tcl (where I installed 8.4) rather than it finding the older version?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

rebuild eggdrop, using your local Tcl installation (--with-tcllib and --with-tclinc options of configure)

you better use RSS script that is supported here (do a forum search); perplexa is not on these forums and his/her script is not supported here
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
j
janipewter
Voice
Posts: 16
Joined: Sun Jan 22, 2006 8:59 pm

Post by janipewter »

Thanks for the help. Are they any you can recommend to me which don't requre me either a) having root; or b) having to install countless packages. All I need it to do is let me input a url to an RSS feed and have it post the latest news to a channel whenever the feed is updated.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

I believe my script will do the job for you
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
j
janipewter
Voice
Posts: 16
Joined: Sun Jan 22, 2006 8:59 pm

Post by janipewter »

Ok, thanks.

I've got it going now, except it doesn't seem to be pulling the RSS feed.

I have this in the config:

Code: Select all

set feeds(#mtavcsux) {10 http://forum.mtavc.com/rss.php}
But it keeps giving me:
(23:07:11) (~Jani) !rss #mtavcsux
(23:07:13) (~Ghost) argument must be number or *
(23:07:20) (~Jani) !rss *
(23:07:21) (~Ghost) no news for this channel
I've given it 20 minutes to update, but it keeps just saying there's no news, even though I've sat there and refreshed the feed page and it has updated a lot of times.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what does the bot's log say? any error messages?
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
j
janipewter
Voice
Posts: 16
Joined: Sun Jan 22, 2006 8:59 pm

Post by janipewter »

[22:30] rssnews-1.5: ERROR(#mtavcsux): timeout
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

well, there you go... your bot can't connect to your website within 20 seconds (default timeout) after initiating connection attempt

try to increase that timeout
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
j
janipewter
Voice
Posts: 16
Joined: Sun Jan 22, 2006 8:59 pm

Post by janipewter »

I've put it to 300 seconds now. I set up a test feed from the BBC news RSS and it works ok, except for spamming the title and then 30 headlines when I've set the variable maxnew to 3.

It's obviously the website I was originally trying which was causing the problems.

Edit: it works :D
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

the maxnew parameter is relevant to announcements of new headlines only, not to requests for all stored (!rss *)

please use script's dedicated support thread if you need more help with it
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
Post Reply