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

Generalized RSS feed #30

Open
jordanbyron opened this issue Feb 12, 2012 · 6 comments
Open

Generalized RSS feed #30

jordanbyron opened this issue Feb 12, 2012 · 6 comments
Assignees

Comments

@jordanbyron
Copy link
Contributor

We'd like to have mendibot post new commits to certain rooms. We can generalized the community RSS code you did so that it's easy to add new RSS feeds to mendibot. We'd also like specify which channels the feeds are broadcast in.

@ghost ghost assigned gjp Feb 12, 2012
@gjp
Copy link
Contributor

gjp commented Feb 12, 2012

Sounds like a many-to-many mapping between feeds and channels, so I'd guess adding more constants to default_environment.rb is not the way to go here. Would you recommend using a different method to store these relationships?

@jordanbyron
Copy link
Contributor Author

@gjp you are right: more constants are definitely not the way to go here. I think the most logical way to think about this data is in terms of the RSS feeds themselves.

RSS = {
  "http://mysite.com/awesome.rss" => ["#mendicant", "#mendicant-alumni"],
  "http://info.com/important.rss" => :all
}

Something like that should do the trick.

@semmons99
Copy link
Contributor

@gjp and @jordanbyron if neither of you plan on working on this soon, I'll do it during the hackday.

@jordanbyron
Copy link
Contributor Author

@semmons99 you'll have to work that out with @gjp. I certainly won't have time to work on this before then :wink2:

@gjp
Copy link
Contributor

gjp commented Feb 13, 2012

@semmons99 Go for it. Or we could hack on it together if we're both on at the same time, but my cunning plan just involved iterating through a hash as in Jordan's example. 😏

I've been wondering whether the plugin configs ought to be grouped with the general config, especially as more plugins are added, but I didn't have a suggestion for a better way to do it.

@semmons99
Copy link
Contributor

@gjp sounds good. I plan on hacking from 19:00 UTC - 21:00 UTC and could possibly come back from 00:00 UTC - 03:00 UTC.

If we can get together maybe we can hack mendibot even more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants