sylae / ligrev

XMPP MUC Utility bot
GNU General Public License v3.0
2 stars 1 forks source link

Get the forum rss feed #13

Closed cburschka closed 8 years ago

cburschka commented 8 years ago

might be cool if Ligrev linked to forum posts that got written. SMF does have an RSS feed that could be used for this.

(Unfortunately, iirc this Ligrev doesn't yet have a mechanism to asynchronously schedule tasks, which might require a PEAR library (Event?).)

I got bored and made some untested prototype code.

sylae commented 8 years ago

This is a pretty cool idea. I'll see about integrating it into ligrev.

Ligrev actually can tie into JAXL's event clock and use that, I don't know if the code is pushed but I've used it before.

sylae commented 8 years ago

Shitty example from LoungeSim: https://github.com/sylae/loungesim/blob/master/manager.php#L102

Also, given that I have access to the forum itself, it might also be possible to do something webhook-like to push a message to Ligrev to post (This is one of the long-term goals of the LCN project)

cburschka commented 8 years ago

Neat, I tweaked it to use that!

A direct hook would be great, though I haven't seen enough of SMF's documentation to know how that would work.

sylae commented 8 years ago

SMFs documentation is ass, and the codebase is ass. They have a primitive hook system but I dunno how/if it works. I've yet to see a package use it, so there's that.

Most likely a push-to-Ligrev solution would just have a couple lines of code injected into Post.php or something.