index.js
function timeoutUser(name, seconds, reason) {
  // Create a user if it doesn't exist
  users[name] = users[name] || helpers.createUser();
  users[name].offenses++;

  var offenses = users[name].offenses;

  if (offenses > config.maxOffenses)
    banUser(name);
  else {
    seconds = seconds || (offenses === 1 ? 10 : 60);
    twitchCommand('timeout', name + ' ' + seconds + ' ' + reason + ' - warning ' + offenses + ' of ' + config.maxOffenses);
  }
}
function timeoutUser(name, seconds, reason) {
  // Create a user if it doesn't exist
  users[name] = users[name] || helpers.createUser();
  users[name].offenses++;

  var offenses = users[name].offenses;

  if (offenses > config.maxOffenses)
    banUser(name);
  else {
    seconds = seconds || (offenses === 1 ? 10 : 60);
    twitchCommand('timeout', name + ' ' + seconds + ' ' + reason + ' - warning ' + offenses + ' of ' + config.maxOffenses);
  }
}
function timeoutUser ( name , seconds , reason ) { // Create a user if it doesn't exist users [ name ] = users [ name ] || helpers . createUser ( ) ; users [ name ] . offenses ++ ; var offenses = users [ name ] . offenses ; if ( offenses > config . maxOffenses ) banUser ( name ) ; else { seconds = seconds || ( offenses === 1 ? 10 : 60 ) ; twitchCommand ( 'timeout' , name + ' ' + seconds + ' ' + reason + ' - warning ' + offenses + ' of ' + config . maxOffenses ) ; } }
Timeout a user in chat

@param name    {string}      - nickname of the user to timeout
@param seconds {number|null} - number of seconds to timeout
@param reason  {string}      - the reason for the timeout
Timeout a user in chat