I am working on a project for a large organization that uses Spark. Their business need is to have a broadcast message that is sent specifically to certain groups.
I’ve found scripts for using the web admin tool for broadcasting to all users, but this will not work as a solution.
The broadcast messages need to be completely non-interactive.
you will probably need an XMPP Bot. There are many, so a google search should yield some options. You will connect your bot to openfire, and configure it to send messages to certain users and/or groups.
or, you could create a plugin that augments the Broadcast plugin for Openfire and make it behave like you desire.
The perl script uses an Openfire admin function and not the broadcast plugin as far as I remember. To use the broadcast plugin you need an xmpp client like Spark (or Smack + 5 lines custom code) and send a message to groupname@broadcast.xmpp-domain.