egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bringing News to irc

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
frank
Voice


Joined: 02 Oct 2005
Posts: 5

PostPosted: Sun Oct 02, 2005 6:30 am    Post subject: Bringing News to irc Reply with quote

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 Wink
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3767
Location: Mint Factory

PostPosted: Sun Oct 02, 2005 9:24 am    Post subject: Reply with quote

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
View user's profile Send private message
frank
Voice


Joined: 02 Oct 2005
Posts: 5

PostPosted: Sun Oct 02, 2005 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Oct 02, 2005 11:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
frank
Voice


Joined: 02 Oct 2005
Posts: 5

PostPosted: Sun Oct 02, 2005 11:27 am    Post subject: Reply with quote

ah, thanks guy
[e]
set feeds(#chan) {2 http://url}
-> rss will be sent to #chan every 2 minutes?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Oct 02, 2005 11:35 am    Post subject: Reply with quote

Quote:

# 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] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
frank
Voice


Joined: 02 Oct 2005
Posts: 5

PostPosted: Sun Oct 02, 2005 11:53 am    Post subject: Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Oct 02, 2005 12:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
frank
Voice


Joined: 02 Oct 2005
Posts: 5

PostPosted: Sun Oct 02, 2005 12:42 pm    Post subject: Reply with quote

ok. thanks so far
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Oct 02, 2005 3:29 pm    Post subject: Reply with quote

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 Very Happy
_________________
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
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Oct 02, 2005 3:47 pm    Post subject: Reply with quote

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 Very Happy


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
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber