mirror of https://github.com/Mai-with-u/MaiBot.git
relation_frequency为int时,如果配置了较小的值会出现除以0的问题
parent
44fff4ed8a
commit
5a1239f0f2
|
|
@ -61,8 +61,8 @@ class RelationshipConfig(ConfigBase):
|
||||||
enable_relationship: bool = True
|
enable_relationship: bool = True
|
||||||
"""是否启用关系系统"""
|
"""是否启用关系系统"""
|
||||||
|
|
||||||
relation_frequency: int = 1
|
relation_frequency: float = 1
|
||||||
"""关系频率,麦麦构建关系的速度"""
|
"""关系频率,麦麦构建关系的速度,值越大,构建的频率越高"""
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue