Refactor JavaScript HITOKOTO check for consistency with Python

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-29 11:31:12 +00:00
parent d1a657010b
commit 13c35b7057

View File

@ -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());
}