Closed N3bTcx closed 10 years ago
I don't know the answer for the first question.
The second one (i think) is something like this>
Usage: .rss add <#channel> <Feed_Name> <URL> [fg] [bg]
Where <#channel>
is the name of the channel where you would like to post if something new shows up, <Feed_Name>
is the name of the feed, <URL>
is the feed url, [fg]
is the foreground color code, [bg]
is the background color code.
You have to use the mirc color codes for this i assume, here is a little bit of explanation of them:
http://www.mirc.com/colors.html.
If I'm mistaken at something please correct me.
It should auto-update every 5 minutes when you start the bot already. And yes, the fg
and bg
are MIRC color codes.
Thanks for your answers. Will have a look.
Rss won't start automaticly.
Here an example where I need to start it to fetch rss.
[10:42] <@ n3b> | .help
[10:42] < Willie> | n3b: Say .help <command> (for example .help c) to get help for a command, or .commands for a list of commands.
[11:11] <@ n3b> | .rss start
[11:11] < Willie> | n3b: Okay, I'll start fetching RSS feeds...
[11:15] < Willie> [AmateurRadioNew] Why did Cheryl K9BIK leave ham nation? http://www.reddit.com/r/amateurradio/comments/25xbls/why_did_cheryl_k9bik_leave_ham_nation/ - 2014-05-19 - 08:30:34
Also i don't get any feedbacks when a feed is disable (generaly for a too long ping).
I use the python module "Feedparser" V 5.1.3 and my bot code is as follows:
def setup(bot):
#Auto start checking and sending the news feeds.
tlkrss2(bot)
kncrss2(bot)
def tlkrss2(bot):
#my code to check my feeds every 30 seconds
def kncrss2(bot):
#my code to check my feeds every 30 seconds
Does not answer your question, but may be of help!
I was talking about this earlier in the channel. My suggestion is a config boolean that sets the RSS feeds to start automatically after an IRC connection. Currently, I have to do a ".rss start" to start the periodic RSS fetching process every time the bot reconnects or logs on.
Hello
I would like to know if it's possible to automaticly start fetching rss when the bot start?
How to use the option [fg] [bg] ?
Usage: .rss add <#channel> <Feed_Name> <URL> [fg] [bg]
On rss.py
"""Given some text and fore/back colours, return a coloured text string."""
Thanks