src/index.js
/**
 * Delay for an amount of time ~ roughly ~ commensurate with the time it would
 * take to type a message.
 */
Delay for an amount of time ~ roughly ~ commensurate with the time it would
take to type a message.
Delay for an amount of time ~ roughly ~ commensurate with the time it would take to type a message .
function waitForTyping(message) {
  const charactersPerSecond = 400 / 60; 
  const timeoutSeconds = random(3) + (message.length / charactersPerSecond);
  logInfo(`Waiting ${timeoutSeconds} seconds`);
  return new Promise((resolve) => {
    setTimeout(resolve, timeoutSeconds * 1000);
  });
}
function waitForTyping ( message ) { const charactersPerSecond = 400 / 60 ; const timeoutSeconds = random ( 3 ) + ( message . length / charactersPerSecond ) ; logInfo ( ` ${ timeoutSeconds } ` ) ; return new Promise ( ( resolve ) => { setTimeout ( resolve , timeoutSeconds * 1000 ) ; } ) ; }
Delay for an amount of time ~ roughly ~ commensurate with the time it would
 take to type a message.
Delay for an amount of time ~ roughly ~ commensurate with the time it would take to type a message .
// 400 cpm