Doesn't seem to do anything. [DMC]


SUBMITTED BY: Guest

DATE: Oct. 19, 2013, 11:32 p.m.

FORMAT: JavaScript

SIZE: 324 Bytes

HITS: 978

  1. timer = 10
  2. setInterval(function decreaseTimer() {
  3. timer = timer - 1;
  4. }, 1000);
  5. if (timer === 0) {
  6. console.log("[DMC] [Faucet] Timer is 0, posting message.")
  7. socket.emit('chat', {
  8. room: 'main',
  9. message: '[color=blue]10 seconds passed, timer test...[/color]'
  10. });
  11. timer = 10
  12. }

comments powered by Disqus