View previous topic :: View next topic |
Author |
Message |
frank Voice
Joined: 02 Oct 2005 Posts: 5
|
Posted: Sun Oct 02, 2005 6:30 am Post subject: Bringing News to irc |
|
|
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  |
|
Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3767 Location: Mint Factory
|
Posted: Sun Oct 02, 2005 9:24 am Post subject: |
|
|
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. |
|
Back to top |
|
 |
frank Voice
Joined: 02 Oct 2005 Posts: 5
|
Posted: Sun Oct 02, 2005 10:20 am Post subject: |
|
|
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? |
|
Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Oct 02, 2005 11:24 am Post subject: |
|
|
to replace:
Code: |
puthelp "privmsg $chan :($idx) $title"
|
with:
Code: |
puthelp "privmsg $chan :($idx) $title ($link)"
|
_________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
Back to top |
|
 |
frank Voice
Joined: 02 Oct 2005 Posts: 5
|
Posted: Sun Oct 02, 2005 11:27 am Post subject: |
|
|
ah, thanks guy
[e]
set feeds(#chan) {2 http://url}
-> rss will be sent to #chan every 2 minutes? |
|
Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Oct 02, 2005 11:35 am Post subject: |
|
|
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] tag when posting logs, code |
|
Back to top |
|
 |
frank Voice
Joined: 02 Oct 2005 Posts: 5
|
Posted: Sun Oct 02, 2005 11:53 am Post subject: |
|
|
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? |
|
Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Oct 02, 2005 12:38 pm Post subject: |
|
|
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] tag when posting logs, code |
|
Back to top |
|
 |
frank Voice
Joined: 02 Oct 2005 Posts: 5
|
Posted: Sun Oct 02, 2005 12:42 pm Post subject: |
|
|
ok. thanks so far |
|
Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sun Oct 02, 2005 3:29 pm Post subject: |
|
|
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  _________________ 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... |
|
Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Oct 02, 2005 3:47 pm Post subject: |
|
|
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  |
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] tag when posting logs, code |
|
Back to top |
|
 |
|