Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hubot-seen

hubot-scripts240.3kMIT2.0.0

A hubot script that tracks when/where users were last seen

hubot, hubot-scripts, seen

readme

hubot-seen

A hubot script that tracks when/where users were last seen

See src/seen.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-seen --save

Then add hubot-seen to your external-scripts.json:

["hubot-seen"]

Configuration

Set HUBOT_SEEN_TIMEAGO to false in the environment to output an absolute time (like "Sat Feb 11 2017 03:12:39 GMT-0500 (EST)") instead of a relative one (like "less than a minute ago"). Defaults to true (i.e. relative times).

Sample Interaction

user1>> hubot seen wiredfool
hubot>> wiredfool was last seen in #joiito less than a minute ago

changelog

hubot-seen changelog

hubot-seen follows Semantic Versioning 2.0.

2.0.0 - 2020-10-04

Added

  • Add a test suite

Changed

  • Dependency upgrades

Breaking

  • Switch to a more modern timeago implementation, which uses slightly different strings
  • Drop support for Node 6 and Node 8

1.0.1 - 2017-03-15

Fixed

  • Revert a dependency upgrade that caused TypeError: $.extend is not a function

1.0.0 - 2017-03-15

Added

  • Data is now saved to Hubot's brain when it changes

Changed

  • Dependency upgrades

Breaking

  • timeago-formatted times are now used by default (set HUBOT_SEEN_TIMEAGO=false to restore the old behavior)

0.2.3 - 2015-06-19

Fixed

  • The Hubot logger is now used to send debug messages instead of console.log

0.2.2 - 2014-12-18

Fixed

  • All valid IRC nickname characters are now correctly accepted

0.2.1 - 2014-11-06

Fixed

  • Fix the main command not being recognized without another word following it

0.2.0 - 2014-07-07

Added

  • Add a command to list users seen in the last 24 hours

0.1.1 - 2014-05-03

Fixed

  • Fix a syntax error

0.1.0 - 2014-05-01

Added

  • Add timeago functionality and accompanying environment variable

0.0.1 - 2014-04-30

Added

  • Initial release