hubot-tomato-timer

1.1.1 • Public • Published

hubot-tomato-timer

A Hubot script for all your tomato timer needs. Simply start a timer and Hubot will notify you when the timer is done.

Inspired by TomatoTimer.

Install It

Install with npm using --save to add to your package.json dependencies.

  > npm install --save hubot-tomato-timer

Then add "hubot-tomato-timer" to your external-scripts.json.

Example external-scripts.json

["hubot-tomato-timer"]

Or if you prefer, just drop tomato-timer.coffee in your Hubot scripts folder and enjoy.

Use It

Each user can start a single timer per chat room. Everyone in a chatroom can start their own timer.

  • hubot tomato start - start a tomato timer
  • hubot tomato stop - stop a tomato timer
  • hubot tomato info - show info about the current tomato timer
  • hubot tomato mine - show info about all of my current tomato timers
  • hubot tomato all - show all the tomato timers, everywhere
  • hubot tomato short break - start a short break timer
  • hubot tomato long break - start a long break timer
  • hubot tomato stop break - stop a tomato break timer
  • hubot tomato help - return the allowed commands

Configure It

If you don't like the default :tomato: emoji, you can override using HUBOT_TOMATO_TIMER_EMOJI.

Improve It

Feel free to help this script suck less by opening issues and/or sending pull requests.

If you haven't already, be sure to checkout the Hubot scripting guide for tons of info about extending Hubot.

Coding Style

Other than the 79 character line length limit, which I consider to be a suggestion, let's try to follow the CoffeeScript Style Guide.

Other Hubot tomato timers

I found hubot-pomodoro when trying to decide on a package name. Give it a shot if you don't like hubot-tomato-timer (or even if you do).

Package Sidebar

Install

npm i hubot-tomato-timer

Weekly Downloads

2

Version

1.1.1

License

MIT

Last publish

Collaborators

  • ryoe