Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to auto start Rss ? #516

Closed
N3bTcx opened this issue Apr 24, 2014 · 6 comments
Closed

Is it possible to auto start Rss ? #516

N3bTcx opened this issue Apr 24, 2014 · 6 comments
Labels
Bug Things to squish; generally used for issues Medium Priority

Comments

@N3bTcx
Copy link

N3bTcx commented Apr 24, 2014

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

@richard132
Copy link

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.

@embolalia
Copy link
Contributor

It should auto-update every 5 minutes when you start the bot already. And yes, the fg and bg are MIRC color codes.

@N3bTcx
Copy link
Author

N3bTcx commented Apr 25, 2014

Thanks for your answers. Will have a look.

@N3bTcx
Copy link
Author

N3bTcx commented May 19, 2014

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).

@N3bTcx N3bTcx reopened this May 19, 2014
@Nuvelle
Copy link

Nuvelle commented May 19, 2014

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!

@d0cx
Copy link

d0cx commented May 19, 2014

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.

maxpowa pushed a commit to maxpowa/Inumuta that referenced this issue Feb 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Things to squish; generally used for issues Medium Priority
Projects
None yet
Development

No branches or pull requests

5 participants