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.

Bringing News to irc

Old posts that have not been replied to for several years.
Locked
f
frank
Voice
Posts: 5
Joined: Sun Oct 02, 2005 6:27 am

Bringing News to irc

Post by frank »

Hi,
I'm searching for a simple script that brings my page's news to irc. dont actually have an rss feed but that shouldnt be a problem. (easiest way imo)

tried some rss scripts but didnt find the right one:
it should send NEW headlines to irc automatically (and by typting !news or sth). format: Newstext [linktonews]

thanks for help ;)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Do a search on the Tcl Archive on 'rss' word and you'll find at least 3 scripts. Check demond's rss script..
Once the game is over, the king and the pawn go back in the same box.
f
frank
Voice
Posts: 5
Joined: Sun Oct 02, 2005 6:27 am

Post by frank »

sure. but auto-paste didnt work. dont ask me why.

now i'm using
rssnews.tcl - RSS news announcer for eggdrop by demond@demond.net

works fine so far. but what do i have to do to add <link> after the displayed item title in irc?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

to replace:

Code: Select all

puthelp "privmsg $chan :($idx) $title"
with:

Code: Select all

puthelp "privmsg $chan :($idx) $title ($link)"
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
f
frank
Voice
Posts: 5
Joined: Sun Oct 02, 2005 6:27 am

Post by frank »

ah, thanks guy
[e]
set feeds(#chan) {2 http://url}
-> rss will be sent to #chan every 2 minutes?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

# set your feed(s) sources here: channel, poll frequency in mins, feed URL
#
#set feeds(#chan1) {17 http://www.osnews.com/files/recent.rdf}
#set feeds(#chan2) {11 http://news.google.com/news?ned=us&topic=h&output=rss}
it will check (poll) every x minutes for updated headlines, and if such exist, it will announce them on channel
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
f
frank
Voice
Posts: 5
Joined: Sun Oct 02, 2005 6:27 am

Post by frank »

yeah. great script. all working fine.

how 2 do amsg instead of chan msg?
replace feeds #chan with # or so?
or only replace privmsg with amsg code?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

this is not a mIRC script, so you can't use /amsg

and it's designed to serve each channel with a different feed; if you want the same feed on all channels, then configure all channels with the same feed, although this doesn't make much sense

of course, that effect can be achieved via replacing the single output line with a loop by [channels], which I wouldn't recommend, the bot might flood itself out of irc if there are too many announcements
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
f
frank
Voice
Posts: 5
Joined: Sun Oct 02, 2005 6:27 am

Post by frank »

ok. thanks so far
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

demond wrote:this is not a mIRC script, so you can't use /amsg
if the server allows multi targeting you could use:
puthelp "PRIVMSG [join [channels] ,] :text"
to emulate amsg :D
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

De Kus wrote:
demond wrote:this is not a mIRC script, so you can't use /amsg
if the server allows multi targeting you could use:
puthelp "PRIVMSG [join [channels] ,] :text"
to emulate amsg :D
theoretically, yes

practically, no - unless you parse 005 ISUPPORT on connect for TARGETS (not to mention those are in different format for several major ircds); eggdrop by itself doesn't support 005 as mIRC does - one of its flaws
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
Locked