You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have ruby script, which runs as daemon and fetches some data from internet every 60 seconds, and posts messages in our channel using HipChat's url hook.
I want to move this logic into robut plugin, but all plugins in samples triggered by messages. Can you please provide sample, which will post any message into channel every N seconds starting from robut launch?
The text was updated successfully, but these errors were encountered:
There’s not a great way to do it through the plugin architecture — Robut wasn’t really designed for that kind of thing. But since the Chatfile is just Ruby, you could spin up a thread that could manually send a message every few seconds.
The trickiest part is going to be actually sending the message. But I think you could just do it in a similar way to how the plugin architecture sends and receives messages.
I have ruby script, which runs as daemon and fetches some data from internet every 60 seconds, and posts messages in our channel using HipChat's url hook.
I want to move this logic into robut plugin, but all plugins in samples triggered by messages. Can you please provide sample, which will post any message into channel every N seconds?
—
Reply to this email directly or view it on GitHub #49.
I have ruby script, which runs as daemon and fetches some data from internet every 60 seconds, and posts messages in our channel using HipChat's url hook.
I want to move this logic into robut plugin, but all plugins in samples triggered by messages. Can you please provide sample, which will post any message into channel every N seconds starting from robut launch?
The text was updated successfully, but these errors were encountered: