diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-01-10 20:23:22 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-01-10 20:23:22 -0500 |
commit | ad1ba53135b6d538ed4d96bcdc8d3c2c605cd0df (patch) | |
tree | 6ebd05ffb429c097e30fbe913db7719ce548bde6 | |
parent | 51ba72aca77bc98635f267042a38e54d6093147c (diff) |
cleaned jarvis
-rw-r--r-- | examples/jarvis.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/jarvis.js b/examples/jarvis.js index 93061d7..52b135f 100644 --- a/examples/jarvis.js +++ b/examples/jarvis.js @@ -150,7 +150,7 @@ function detectPrompt(send, tiles, locs){ // tries to detect the prompt ('jarvis } let results = read.add(loc, tiles[loc]); if (results.length > 0) respond(results); - expire[loc] = setTimeout(() => {read.del(loc)}, 30000); + expire[loc] = setTimeout(() => {read.del(loc); delete expire[loc];}, 30000); } limits.push(send); setTimeout(() => {limits.splice(limits.indexOf(send))}); |