remove: 删除 python3.10 不兼容的 f-string 语法

Co-authored-by: Soulter <905617992@qq.com>
Co-authored-by: QodiCat <1357016290@qq.com>
This commit is contained in:
Soulter
2024-12-10 20:56:16 +08:00
parent b25a422fd6
commit 90df679a77
3 changed files with 4 additions and 3 deletions
+3 -1
View File
@@ -41,7 +41,9 @@ class AstrBotConfig(dict):
has_new = False
for key, value in refer_conf.items():
if key not in conf:
logger.info(f"检查到配置项 {path + "." + key if path else key} 不存在,已插入默认值 {value}")
# logger.info(f"检查到配置项 {path + "." + key if path else key} 不存在,已插入默认值 {value}")
path_ = path + "." + key if path else key
logger.info(f"检查到配置项 {path_} 不存在,已插入默认值 {value}")
conf[key] = value
has_new = True
else:
+1 -1
View File
@@ -26,7 +26,7 @@ DEFAULT_CONFIG = {
"wake_prefix": "",
"web_search": False,
"identifier": False,
"default_personality": "",
"default_personality": "如果用户寻求帮助或者打招呼,请告诉他可以用 /help 查看 AstrBot 帮助。",
"prompt_prefix": ""
},
"content_safety": {
-1
View File
@@ -2,7 +2,6 @@ import os
import ssl
import shutil
import socket
import ifaddr
import time
import aiohttp
import base64