From 447091f1729fb0f3cbf43b423cbf067af8f63cb8 Mon Sep 17 00:00:00 2001 From: buzzcode2007 <73412182+buzz_lightsnack_2007@users.noreply.github.com> Date: Thu, 21 Mar 2024 23:30:36 +0800 Subject: [PATCH] add standby state detection --- scripts/watchman.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/watchman.js b/scripts/watchman.js index f5d5eca..c455201 100644 --- a/scripts/watchman.js +++ b/scripts/watchman.js @@ -38,13 +38,20 @@ Be sensitive to changes and update the state. // TODO } + static standby() { + /* Set the program to standby utnil next load. + */ + + console.log("ShopAI doesn't work here (yet). Expecting something? Try checking your filters. If you know what you're doing, feel free to create a filter yourself."); + } + static job() { /* The main action. */ let job_task = watchman.observe(); if (job_task) { watchman.act(job_task); } else { - console.log("ShopAI doesn't work here (yet). Expecting something? Try checking your filters. If you know what you're doing, feel free to create a filter yourself."); + watchman.standby(); } } }