Skip to content

Commit e450d88

Browse files
Update howtos/how-to-set-an-away-message/server.js
Co-authored-by: Steven Waterman <[email protected]>
1 parent 1561cf6 commit e450d88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

howtos/how-to-set-an-away-message/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const basePath = "https://api.talkjs.com";
99
const app = express().use(express.json()); // creates http server
1010
app.listen(3000, () => console.log("Server is up"));
1111

12-
const autoReplied = {};
12+
// Track when we auto-replied to each conversation ID so we don't send multiple replies in a row
13+
const alreadyReplied = {};
1314

1415
// Start and end of support hours in "HH:mm:ss" format
1516
const startTime = "09:00:00";

0 commit comments

Comments
 (0)