1
0
mirror of https://api.glitch.com/git/presence-button synced 2024-11-05 08:17:32 +00:00

👴🖇 Checkpoint

./server.js:933874/12557
This commit is contained in:
Glitch (hello-express) 2020-02-05 20:49:38 +00:00
parent bc14857c19
commit 2ef36a2670

View File

@ -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"