Skip to content

Instantly share code, notes, and snippets.

@tenten0213
Created November 6, 2013 06:26
Show Gist options
  • Save tenten0213/7331790 to your computer and use it in GitHub Desktop.
Save tenten0213/7331790 to your computer and use it in GitHub Desktop.
cron = require('cron').CronJob
module.exports = (robot) ->
robot.enter ->
new cron
cronTime: "0 0 9 * * *"
start: true
timeZone: "Asia/Tokyo"
onTick: ->
robot.send {room: "#hoge"}, "朝会の時間です。"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment