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-more-aliases

v1.2.0

Published

The Hubot script that allows you to define more Hubot's aliases (instead of simply using the HUBOT_ALIAS environment variable).

Downloads

8

Readme

Hubot-more-aliases

Do you like nicknames? I bet our little friend, Hubot, likes them, too.

Unfortunately, you can only name him twice: once for his real name (robot.name) and once for his alias (robot.alias). What if you want to have multiple aliases? Well, this is where the hubot-more-aliases comes to play.

Usage

Installing the module

First step is to include the hubot-more-aliases dependency to your Hubot scripts (inside the package.json file). Then all you have to do is to update your external-scripts.json file to include our library. If this file is missing, simply create it with content:

["hubot-more-aliases"]

Set up the aliases

The library will load Hubot's aliases from the HUBOT_ALIASES environment variable. They should be separated with coma and can contain spaces. Please keep in mind, that you can also use RegExp inside alias. Some examples:

Fancy\s+bot
Hubot[s]?\s+(?:name|alias)

As you can see, it is good idea to use \s+ instead of simple , because the user can sometimes hit the space twice. Also please use the (?:) notation, because otherwise it will mess up normal parameters order.

Try using the alias!

After starting the Hubot, you will be able to use new alias. Similiar to normal HUBOT_ALIAS, you can also use : and , after the bot's name. Inside the logs you will find information about proxying the message to different name.

How does it work?

The library has created new Hubot's script that is listening inside the room for every alias. After the bot will find the message directed to alias, it will remove the message from processing queue and then create new message with the bot's name changed to the original one (robot.name).

Contribution

If you want to contribute, just fork the project and add some changes!

Errors and ideas to improve

If you will find any errors with this library or have great idea how to improve it (and don't want to do it on your own), please feel free to open a new ticket.