From 13c35b70572731f28da1b4dcf716f1c3f9f7250b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:31:12 +0000 Subject: [PATCH] Refactor JavaScript HITOKOTO check for consistency with Python Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- sample/notify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/notify.js b/sample/notify.js index 284d8d9b..59d38e86 100644 --- a/sample/notify.js +++ b/sample/notify.js @@ -1511,7 +1511,7 @@ async function sendNotify(text, desp, params = {}) { } } - if (push_config.HITOKOTO !== 'false' && push_config.HITOKOTO !== false) { + if (![false, 'false'].includes(push_config.HITOKOTO)) { desp += '\n\n' + (await one()); }