Action Messenger 0.2.0
Posted by Trejkaz Fri, 23 Mar 2007 09:12:14 GMT
Today’s new version of Action Messenger makes things slightly easier to read when sending messages:
def prod(user)
recipient user.jid
subject 'Prod'
body 'You told me to give you a prod when I updated...'
end
You can send to multiple recipients too, just add them like this:
def spam
recipients User.find_all.map { |u| u.jid }
subject 'Buy chunky bacon'
body 'Do I have a deal for you!'
end
These changes have been in trunk for some time, however someone recently made me aware that the documentation doesn’t describe basic things like where the config file should be. This has been properly documented now, and hence the new version being pushed out.