mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
Fix HITOKOTO parameter boolean/string type handling (#2918)
* Initial plan * Fix HITOKOTO parameter type mismatch in notify scripts Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> * Refactor JavaScript HITOKOTO check for consistency with Python Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -1582,7 +1582,7 @@ async function sendNotify(text, desp, params = {}) {
|
||||
}
|
||||
}
|
||||
|
||||
if (push_config.HITOKOTO !== 'false') {
|
||||
if (![false, 'false'].includes(push_config.HITOKOTO)) {
|
||||
desp += '\n\n' + (await one());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user