mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
feat: kiosk auto-starts voice mode and blocks sleep — isolated patches only
This commit is contained in:
@@ -5,6 +5,7 @@ var _sleepRefreshTimer = null;
|
||||
var SLEEP_CMDS = /\b(good\s*night(\s*jarvis)?|go\s*to\s*sleep|sleep\s*mode|shut\s*(down|off)\s*(jarvis|for\s*the\s*night)|go\s*offline|going\s*offline|jarvis\s*(go\s*)?(offline|sleep|shutdown)|stand\s*by\s*mode|power\s*down(\s*jarvis)?|signing\s*off)\b/i;
|
||||
|
||||
function enterSleepMode() {
|
||||
if (document.body.classList.contains("kiosk-mode")) return;
|
||||
if (isAsleep) return;
|
||||
isAsleep = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user