New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hubot-schedule-msg

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubot-schedule-msg

Message scheduler for hubot, fit with RocketChat

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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 2020 juzser.

Licensed under the MIT License.

Keywords

FAQs

Package last updated on 04 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc