Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

slack-slash-time

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slack-slash-time

translate times in slack channels

  • 0.1.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

/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

  • Example setup on gomix: https://gomix.com/#!/project/seed-humor
  • Example setup for iron.io: slash-time-iron.js

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.)

FAQs

Package last updated on 08 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc