Skip to content

参数HITOKOTO设置不生效,获取HITOKOTO参数设置值时为字符串对比,但是设置时是布尔类型。 #2909

@zdt1013

Description

@zdt1013

Qinglong version

所有版本

Steps to reproduce

参数HITOKOTO设置不生效,获取HITOKOTO参数设置值时为字符串对比,但是设置时是布尔类型。

原代码

push_config = {
    'HITOKOTO': True,                  # 启用一言(随机句子)

...

hitokoto = push_config.get("HITOKOTO")
content += "\n\n" + one() if hitokoto != "false" else ""

What is expected?

需要修改判断正常识别参数配置。

What is actually happening?

System Info

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions