1
0

refactor(config): read config from ai.syui.log instead of ai.syui.gpt

This commit is contained in:
2026-03-24 16:30:36 +09:00
parent ee10143e44
commit 06e5dc4d30

View File

@@ -46,7 +46,7 @@ struct BotConfig {
pub fn config_file() -> PathBuf { pub fn config_file() -> PathBuf {
dirs::config_dir() dirs::config_dir()
.unwrap_or_else(|| PathBuf::from(".")) .unwrap_or_else(|| PathBuf::from("."))
.join("ai.syui.gpt") .join("ai.syui.log")
.join("config.json") .join("config.json")
} }
@@ -131,7 +131,8 @@ pub fn base_dir(cfg: &Config) -> PathBuf {
Some(p) => expand_path(p), Some(p) => expand_path(p),
None => dirs::config_dir() None => dirs::config_dir()
.unwrap_or_else(|| PathBuf::from(".")) .unwrap_or_else(|| PathBuf::from("."))
.join("ai.syui.gpt"), .join("ai.syui.log")
.join("at"),
} }
} }