adjust things

This commit is contained in:
Tommy Parnell
2015-05-19 22:29:39 -04:00
parent ca1fbc3823
commit e8c38117eb

View File

@@ -11,8 +11,14 @@
#
# These are from the scripting documentation: https://github.com/github/hubot/blob/master/docs/scripting.md
TIMEZONE = "America/New_York"
TRIGGER = '0 0 9 * * 2-6' # M-F 5am
ROOM = "226_gallery@conf.hipchat.com"
cronJob = require('cron').CronJob
module.exports = (robot) ->
next = () ->
rotation = robot.brain.get('rotation')
current = robot.brain.get('current')
@@ -27,7 +33,7 @@ module.exports = (robot) ->
robot.brain.set('current', current)
robot.messageRoom ROOM, "#{current} is now Queue boss"
update = new cronJob trigger,
update = new cronJob TRIGGER,
->
next()
null