From 2ef36a26703f6894330508f63c27bb81998a7624 Mon Sep 17 00:00:00 2001 From: "Glitch (hello-express)" Date: Wed, 5 Feb 2020 20:49:38 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B4=F0=9F=96=87=20Checkpoint=20./serve?= =?UTF-8?q?r.js:933874/12557?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 8f96bf7..6747763 100644 --- a/server.js +++ b/server.js @@ -130,7 +130,7 @@ request.post( const loop = () => { console.log("loop", lastClosed); if ( - fuzIsOpen && + //fuzIsOpen && lastSeen < new Date() - closingTimeout && lastClosed < lastSeen ) { @@ -152,7 +152,9 @@ request.post( "&limit=1", body: JSON.stringify({ msgtype: "m.text", - body: process.env.MATRIXMESSAGE + body: + process.env.MATRIXMESSAGE + + (fuzIsOpen ? "" : " (crash ou oubli)") }), headers: { "Content-Type": "application/json"