message: add support for customizable typingDelay in message object
diff: @@ -146,6 +146,10 @@ function SocketBot(configuration) {
  return new Promise(function(resolve, reject) {
  + var typingLength = 0;
  + if (message.typingDelay) {
  + typingLength = message.typingDelay;
  + } else {
  var textLength;
  if (message.text) {
  textLength = message.text.length;
  @@ -156,7 +160,8 @@ function SocketBot(configuration) {
  var avgWPM = 150;
  var avgCPM = avgWPM * 7;
  - var typingLength = Math.min(Math.floor(textLength / (avgCPM / 60)) * 1000, 5000);
  + typingLength = Math.min(Math.floor(textLength / (avgCPM / 60)) * 1000, 5000);
  + }
  setTimeout(function() {
  resolve();
  @@ -197,7 +202,7 @@ function SocketBot(configuration) {
  resp.channel = src.channel;
  resp.to = src.user;
  - if (resp.typing || controller.config.useTypingDelay) {
  + if (resp.typing || controller.config.replyWithTyping) {
  bot.replyWithTyping(src, resp, cb);
  } else {
  bot.send(resp, cb);
  