bnjbvr / botzilla

Matrix bot tuned for Mozilla's needs
25 stars 7 forks source link

Post new planet.m.o in room #2

Open dannycolin opened 5 years ago

dannycolin commented 5 years ago

Would be nice to have the same function as firebot on IRC that automatically post new articles from planet.m.o

bnjbvr commented 5 years ago

Nice, I didn't know it could do this! Well, I think that an RSS check in setInterval could work to retrieve the titles. Now the bot only knows how to react to messages, and can't just tell things from nowhere.

Also, I think Matrix already has support for some native integrations, which include RSS feed reading.

A serious question is whether this would address the safety requirements of the Mozilla CPG; in particular, if something was offensive in a title of a blog post published via planet.m.o, then showing it in the channel could be offensive. I assume there's some after-the-fact editorial control on Planet, but this wouldn't be sufficient since a Matrix message could be posted before after-the-fact edition happened.

bnjbvr commented 5 years ago

Actually, this would require the (already existing) RSS bot to live in the same instance, since Mozilla's instance isn't federated.

dannycolin commented 5 years ago

A serious question is whether this would address the safety requirements of the Mozilla CPG; in particular, if something was offensive in a title of a blog post published via planet.m.o

Good point. I haven't thought about the fact that it isn't moderated before appearing on planet.m.o. Maybe instead of using planet.m.o's RSS we could have an RSS feed of all the Mozilla Blogs.

auscompgeek commented 5 years ago

If you don't feel like reinventing the wheel too much, the RSS bot listed in the Riot integration manager is go-neb.

The matrix.org bots page also lists another RSS bot.