npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hubot-slack-gcal

v0.1.0

Published

Create events & get calendar updates from slack

Downloads

5

Readme

Hubot-Slack Google Calendar

Provides commands for creating & responding to events in Google Calendar, as well as checking resource status and booking resources. It also has the ability to remind users of upcoming events and notifying users when their events are updated.

Configuration

This script depends on the hubot-slack-google-auth script, which should com first in your external-scripts.json file. In addition to the environment variables described there, make sure HUBOT_GOOGLE_SCOPES variable contains https://www.googleapis.com/auth/calendar.

Webhooks

Calendar reminders & event updates depend on push notifications. For these to work, you'll need to register the domain of your hubot instance (should be the same as the HUBOT_URL env variable) in the developer console and verify ownership using webmaster tools. Whenever someone enables calendar reminders, the script will handle creating and renewing the webhook.

Resources

You can also query and book resources using this script by putting a calendar-resources.json file in your hubot's root directory. The format looks like this:

{
  // Key is the name of the "group" this resource belongs to, used in commands like:
  // "hubot what team rooms are available"
  "team room": {
    // Resource ID                                      // array of aliases for this resource
    "[email protected]": ["1 - HAL 9000", "team room 1", "team room one", "tr1", "tr 1"]
  },
  // ...
}

Usage

Creating events

  • hubot create event <quick add text> - create a new event on your primary calendar using the given quick add text.
  • hubot book <resource> for <quick add text> - creates an event (as above) and invites the given resource. Requires adding a calendar-resources.json file as described above. Resource name for this command can be any one of the aliases you defined.

Enable reminders

  • hubot enable calendar reminders - enable reminders for upcoming events and notifications when events are added/changed/removed. All reminders are sent via DM. Behind the scenes this sets up a webhook that will notify hubot whenever events are updated.
  • hubot disable calendar reminders - turns off event reminders and updates

Replying to events

Whenever hubot send you an event (after creating it, in a reminder, etc.) you can send the following commands to act on it:

  • hubot reply <yes/no/maybe> - RSVP to the event (if you're invited)
  • hubot invite <list of slack names> - invites the given Slack user(s) to the event

Querying resources

  • hubot what <resource group>s are available - tells you which resources in the given group (if any) are free for the next hour.