smashwilson / hubot-plan

Event planning with robots
MIT License
3 stars 1 forks source link

hubot-plan

Plan events with chatops :sparkles: :calendar:

Installation

Install the hubot-plan package from npm and add it to your package.json file:

$ npm install hubot-plan

Now add the hubot-plan module to external-scripts.json:

$ cat external-scripts.json
['hubot-plan']

Commands

Note that your hubot may have a different name or an alias. Commands are shown with a "hubot:" prefix for consistency. This package uses an argument name parser for command-line tools so it obeys many of the same conventions from shells like bash - double-dash --arg, quoting multi-word arguments with double-quotes or single-quotes.

@-mentions

By default, commands that list event attendees will list users by their chosen display names, but not @-mention them and generate a notification. This prevents users from being pinged every time the event is listed. If you do want to notify an event's attendees, add the --ping argument.

Specifying dates

Event dates can be specified in ISO-8601 format. You can specify only dates for full-day events (2018-01-27) or exact times (2018-01-27T17:30).

Creating events

Create new events with the hubot: event create command. Examples:

Other arguments:

Once the event has been created, it will be assigned an ID - a unique, alphanumeric string that uniquely identifies the event, even if you create several with the same name.

Responding to invitations

To respond to an event that does not have a final date chosen:

To respond to an event that has had a final date chosen:

Changing events

To modify an event after it's created, call hubot: event with the ID it's been assigned and other arguments. You can also use hubot: event <id> with no further arguments to view the current state of an event.

Listing events

To see existing events and their IDs:

Specifying multiple filters at once shows events that match all criteria (so, it combines them with "and").

Deleting events