Socket
Book a DemoInstallSign in
Socket

ruboty-cron

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ruboty-cron

bundlerRubygems
Version
1.1.0
Version published
Maintainers
1
Created
Source

Ruboty::Cron

Mount cron system to Ruboty to schedule messages on a specific time.

Usage

You can use any Chrono compatible cron syntax to schedule messages.

@ruboty add job "<cron syntax>" <message> - Add a new cron job
@ruboty delete job <id>                   - Delete a cron job
@ruboty suspend job <id>                  - Suspend a cron job
@ruboty resume job <id>                   - Resume a cron job
@ruboty list jobs                         - List all cron jobs

Example

$ bundle exec ruboty
Type `exit` or `quit` to end the session.
> @ruboty add job "* * * * *" @ruboty ping
Job 3117 created
pong
pong
pong
pong
pong
> @ruboty list jobs
 3117: "* * * * *" @ruboty ping
> @ruboty delete job 3117
Deleted
>

Tips

If you want to schedule Ruboty to say something, ruboty-echo may help you.

> @ruboty add job "0 8 * * 1-5" @ruboty echo It's Time for School!

FAQs

Package last updated on 15 Oct 2015

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