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-schedule-msg

v0.1.6

Published

Message scheduler for hubot, fit with RocketChat

Downloads

4

Readme

hubot-schedule

Inspired by & based on: hubot-schedule But I think it's BETTER!

I build this to fit with my rocket.chat, but I guess it will work (with some bugs) on other platform. ES6 so it's easily to maintenance.

Features

  • Send direct message to someone & me.
  • Use dots instead of asterisks in cron pattern to avoid markdown parsing.
  • Schedule list only show to author not others, hence you can only see your schedules.
  • Free format for date, it's impossible to cover all cases, but some.
  • Receive message as chain, so you can use this to do other things with bot (My hubot-hook for example)
  • Each user has only 500 schedules per one.

And actually... I don't remember all.

TODO: [] Create built file instead of using direct babel compile. [] Recheck the error handling & error emit. [] Bug fixes.

Installation

Install the package

npm install hubot-schedule-msg

Add hubot-schedule-msg to external-scripts.json.

> cat external-scripts.json
> ["hubot-schedule"]

Usage

hubot schedule <@someone|#channel> "<time|cron_pattern>" <message>
hubot schedule list
hubot remove id

Examples:

hubot schedule "9am" Hello World
hubot schedule #general "tomorrow" Hello World
hubot schedule @someone "9:00:10 31/1/2020 +07:00" Full date time format.
hubot schedule me "9:00 31 Jan +7" Shorthand @rocket.cat.
hubot schedule "Monday" Next Monday at 9am.
hubot schedule "4 5 . . ." Use dots instead of asterisks to avoid markdown parsing.

Configuration

Put these options to your hubot's .env file

HUBOT_SCHEDULE_DEBUG=0

Enable/Disable debug mode, some debug messages will appear.

HUBOT_SCHEDULE_CHAIN_RECEIVER=1

Enable/Disable hubot not to process messages sent by hubot-schedule-msg.

HUBOT_SCHEDULE_IGNORE_EXTERNAL_CONTROL=0

Enable to deny schedule control from other rooms.

HUBOT_SCHEDULE_UTC_OFFSET='+00:00'

This will set default UTC Offset to schedules. If not set, OS timezone's offset would be used.

HUBOT_SCHEDULE_EMIT_ERROR=0

Emit the error message using robot.emit (not sending message outside) or send as messages.

Copyright and license

Copyright 2020 juzser.

Licensed under the MIT License.