Vote using Hubot
Run the npm install command...
npm install hubot-voting
Add the script to the external-scripts.json
file
["hubot-voting"]
hubot start vote first item, second item, third item
hubot vote for first item
or...
hubot vote for 1
or...
hubot vote first item
or...
hubot vote 1
hubot show choices
hubot show votes
hubot end vote
CronJob = require('cron').CronJob
module.exports = (robot) ->
new CronJob(
'0 0 11 * * 1-5',
->
robot.startVote '#room', ['item1', 'item2', 'item3'],
null,
true,
'Asia/Tokyo'
)
new CronJob(
'0 30 11 * * 1-5',
->
robot.endVote '#room',
null,
true,
'Asia/Tokyo'
)
MIT licensed. Copyight 2014 Joshua Antonishen.