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-message-aggregator

v0.0.1

Published

Aggreate message into a single channel based upon an emoji reaction. (such as thanks)

Downloads

9

Readme

hubot-message-aggregator

95feb390-e7b4-4033-b02a-49b1557efd6f

This is a simplistic module designed to aggregate message into a single channel based upon an emoji reaction.

The idea is that if a people react to a message, it will "bookmark" it, or aggregate it into a channel. An example could be to have any message where people react to a message with a :thankyou: emoji placed into a #thanks or #gratitude channel.

Another example could be that any messages with a :computer: emoji reaction gets passed to an incident or alert channel.

Installation

npm i --save hubot-message-aggregator

Edit your external-scripts.json file in your hubot application directory and add hubot-post-aggregator to it.

Configuration

Variables

By default, the pattern it looks for in the emoji name is "thank". This can be set via HUBOT_AGGREGATION_PATTERN. The value for it is just the string portion of the regex (e.g. no need for / around it.)

By default, the aggregator will not post messages from private channels or conversations. This can be overridden by setting HUBOT_AGGREGATION_FROM_PRIVATE_CONVERSATIONS to true.

HUBOT_AGGREGATION_CHANNEL is required. It can be specified as a Slack ChannelID such as C1234567890 or a string such as general.

:warning: Note, the # should not be included.

Behavior

To reduce noise, in case a message gets several reactions that match the pattern, a message is only posted to the aggregation target channel once per 24 hours.

The aggregator does aggregate or repost messages inside the aggregator channel, as this gets into a :turtles: all the way down type situation.

Ouput and information about how this is running can be found in the hubot log.

Limitations

Right now, the 24 hours period is not configurable. Perhaps it should be.

There is exactly 1 ruleset. It might be nice to have several options for this like :sirens: go the incident channel and :prayinghands: go to a thanks channel. Patches welcome.

License

MIT