Skip to content

Instantly share code, notes, and snippets.

View hmatsuda's full-sized avatar

Haruhiko Kobayashi hmatsuda

  • jicoohq
  • Tokyo, Japan
View GitHub Profile
@hmatsuda
hmatsuda / shuffle_lunch.coffee
Created June 8, 2017 08:40
shuffle lunch bot
View shuffle_lunch.coffee
request = require('request')
module.exports = (robot) ->
robot.hear /ランチメンバー教えて(.*)?/, (msg) ->
groups = []
numberOfGroup = 4
request.get
url: "https://slack.com/api/users.list?token=#{process.env.HUBOT_SLACK_TOKEN}"
, (err, response, body) ->
# Slack APIからメンバーを取得