hubot-archive / hubot-seen

A hubot script that tracks when/where users were last seen.
https://www.npmjs.org/package/hubot-seen
24 stars 15 forks source link

In RocketChat seen keeps track of DMs and private rooms #20

Open stevenmcastano opened 5 years ago

stevenmcastano commented 5 years ago

Can this be set to only look at public channels, or only respond with channels if the person asking is also in that channel?

strugee commented 5 years ago

Hm, it should be doing that already, at least for PMs. See https://github.com/hubot-scripts/hubot-seen/blob/1f94663f2d5c2947d89a3ffc84111968e6757722/src/seen.coffee#L20

Without actually looking my guess is that the RocketChat adapter doesn't support the message.user.pm property, which we need to detect PMs. As for private rooms honestly I have no idea what the story is there. We'd need the adapter to give us some flag that indicated the room was private. It's possible that already exists; I haven't looked. If I get some time I will but no promises! If you find something though I don't see why we couldn't add support for it to hubot-seen.