mirror of
https://github.com/Lomanic/presence-button-web
synced 2024-11-26 07:27:30 +00:00
👴🖇 Checkpoint
./server.js:933874/12557
This commit is contained in:
parent
bc14857c19
commit
2ef36a2670
@ -130,7 +130,7 @@ request.post(
|
|||||||
const loop = () => {
|
const loop = () => {
|
||||||
console.log("loop", lastClosed);
|
console.log("loop", lastClosed);
|
||||||
if (
|
if (
|
||||||
fuzIsOpen &&
|
//fuzIsOpen &&
|
||||||
lastSeen < new Date() - closingTimeout &&
|
lastSeen < new Date() - closingTimeout &&
|
||||||
lastClosed < lastSeen
|
lastClosed < lastSeen
|
||||||
) {
|
) {
|
||||||
@ -152,7 +152,9 @@ request.post(
|
|||||||
"&limit=1",
|
"&limit=1",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
msgtype: "m.text",
|
msgtype: "m.text",
|
||||||
body: process.env.MATRIXMESSAGE
|
body:
|
||||||
|
process.env.MATRIXMESSAGE +
|
||||||
|
(fuzIsOpen ? "" : " (crash ou oubli)")
|
||||||
}),
|
}),
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
|
Loading…
Reference in New Issue
Block a user