]> git.cworth.org Git - lmno-server/blobdiff - empathy.js
Tweak idle timer down from 30 seconds to 10
[lmno-server] / empathy.js
index 79a0c441218a33b6b3b9219b12ca3d67d18fc8cf..04b4c6d4bd3f33bb6ce62817af9088843b554c64 100644 (file)
@@ -167,7 +167,7 @@ class Empathy extends Game {
       this.answering_idle_timer = setTimeout(() => {
         this.state_answering_idle = true;
         this.broadcast_event_object('answering-idle', true);
-      }, 30 * 1000);
+      }, 10 * 1000);
     }
 
     /* Notify all players that this player is actively answering. */
@@ -309,7 +309,7 @@ class Empathy extends Game {
   }
 
   canonize(word) {
-    return word.toLowerCase();
+    return word.trim().toLowerCase();
   }
 
   compute_scores() {