botkit-chronos
A middleware that extracts time information from messages using the chrono library. (WORK IN PROGRESS)
Installation
$ npm install --save botkit-chronos
Usage
var Botkit = ;var botkitChronos = ;var controller = Botkit;botkitChronos; // The controller will listen on all texts starting with 'meeting on' and are followed by a phrase that contains time related// content. For example the robot will respond to: //// Meeting on Friday// Meeting in a month// Meeting next monday// Meeting on the 6th of June//// When a time phrase is detected its replaced with TS#timestamp controller;
License
MIT © Alex Psi