refactor(config): read config from ai.syui.log instead of ai.syui.gpt
This commit is contained in:
@@ -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"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user