Twitch TMI Command Timeout

Basica javascript example that would suffice

var block = false;

client.connect();

  client.on('message', (channel, tags, message, self) => {

    if(self) return;

    if(message.toLowerCase() === '!play') {
      if (!block) {
          console.log(client.say(channel, `!play`));
          block = true;
          setTimeout(() => {
              block = false;
          }, (60 * 1000));
      }
    }

});
1 Like