Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including hubot-53cal-jp with all npm packages installed. Try it out:

var hubot53calJp = require("hubot-53cal-jp")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

hubot-53cal-jp v0.2.1

Check the day taking out the trash JP.

hubot-53cal-jp

NPM version Build Status Dependency Status

Check the day taking out the trash JP.

See src/53cal-jp.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-53cal-jp --save

Then add hubot-53cal-jp to your external-scripts.json:

["hubot-53cal-jp"]

Configuration

You set environmental variables(GOMICAL_JP_CITY, GOMICAL_JP_AREA) like below:

heroku config:set GOMICAL_JP_CITY=1130104 GOMICAL_JP_AREA=1130104154

You can get city and area from here

You set GOMICAL_JP_CRON_JOB, GOMICAL_JP_CRON_ROOM like below:

heroku config:set GOMICAL_JP_CRON_JOB="0 0 19 * * *" GOMICAL_JP_CRON_ROOM="#general"

Sample Interaction

user1>> hubot ゴミ 今日
hubot>> 2014-06-10 Tuesday の[南大井6丁目18番地(大森住宅)以外]は燃やすごみです。
hubot>> http://www.53cal.jp/areacalendar/?city=1130104&area=1130104154&yy=2014&mm=6

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free