justinweiss / robut

A simple plugin-enabled HipChat bot
171 stars 48 forks source link

restrict to only room not individual chat #32

Closed pkhabi closed 11 years ago

pkhabi commented 11 years ago

I set up robut and it works great. Is there any way I can restrict the chat only to a room? Basically people can use the bot only from the room and not chat against the bot individually.

justinweiss commented 11 years ago

There isn't anything built-in yet. The easiest way would probably be to add a configuration option that would ignore this line: https://github.com/justinweiss/robut/blob/master/lib/robut/connection.rb#L92, and I'd be open to a pull request adding that.

You'd still see robut, but that should prevent the bot from responding to PMs.

pkhabi commented 11 years ago

thanks, i have created a pull request for this - https://github.com/justinweiss/robut/pull/33 let me know if this is good to merge