/time slash command for Slack that translates from your timezone to everybody's in the channel
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
package.json
slash-time-iron.js
slash-time.js
slash-time.worker

README.md

/time slash command for Slack

slash-time

inputs

params: (from slash command webhook)
  token:
  channel_id:
  user_id:
  text: 

config: (private Slack API info, best defined in process.env)
  SLASH_TOKEN:
  BOT_HOST:
  BOT_PATH:
  BOT_TOKEN:
  API_TOKEN:
  GENERAL_ID:

callback: (log success / error)

server setup

time formats

  • Today, Tomorrow, Yesterday, last Friday, etc
  • 10/13/2013
  • this Friday 13:00
  • Saturday, 17 August 2013
  • Sat Aug 17 2013 18:40:39 GMT+0900 (JST)

(Examples from the excellent chrono library.)