hubot-event-tracker

1.2.3 • Public • Published

Hubot Date Tracker

npm version Node CI

Track days since or days until an event.

See src/event-tracker.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-event-tracker --save

Then add hubot-event-tracker to your external-scripts.json:

[
  "hubot-event-tracker"
]

Sample Interaction

Setting an Event

user1>> hubot it has been 20 days since the last accident
hubot>> Okay, it has been 20 days since the last accident.
user1>> hubot it is 20 days until Christmas 2025.
hubot>> Okay, it is 20 days until Christmas 2025 (12/25/2025).
user1>> hubot the big event is on 2025-01-15
hubot>> Okay, the big event is on 1/15/2025.

Recalling an Event

user1>> hubot days since the last accident
hubot>> It has been 20 days since the last accident.

Listing All Events

user>> hubot events list
hubot>> I know about:
hubot>> - [10/1/2021] another thing
hubot>> - [12/1/2022] foo fighters
user>> hubot events list | foo
hubot>> I know about:
hubot>> - [12/1/2022] foo fighters

Credit

A lot of the features are based on a script found at https://gist.github.com/ajacksified/1636635

NPM Module

https://www.npmjs.com/package/hubot-event-tracker

Package Sidebar

Install

npm i hubot-event-tracker

Weekly Downloads

3

Version

1.2.3

License

MIT

Unpacked Size

20.7 kB

Total Files

13

Last publish

Collaborators

  • stephenyeargin