wispy-cli 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/wispy.mjs +3 -4
- package/package.json +1 -1
package/bin/wispy.mjs
CHANGED
|
@@ -81,11 +81,10 @@ if (serveMode || telegramMode || discordMode || slackMode) {
|
|
|
81
81
|
process.on("SIGINT", async () => { await manager.stopAll(); process.exit(0); });
|
|
82
82
|
process.on("SIGTERM", async () => { await manager.stopAll(); process.exit(0); });
|
|
83
83
|
|
|
84
|
-
// Prevent Node from exiting
|
|
85
|
-
// but we still need something to hold the process open in case adapters
|
|
86
|
-
// don't (e.g. Telegram stops after connection error).
|
|
84
|
+
// Prevent Node from exiting
|
|
87
85
|
setInterval(() => {}, 60_000);
|
|
88
|
-
|
|
86
|
+
// eslint-disable-next-line no-constant-condition
|
|
87
|
+
await new Promise(() => {}); // keep alive
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
// ── TUI mode ──────────────────────────────────────────────────────────────────
|
package/package.json
CHANGED