diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-12 08:56:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-12 08:56:56 +0800 |
| commit | 95221ade461d4da324ebb5de9f2f8d44a34252a0 (patch) | |
| tree | 252af3591cae1e4f7f4359f689f1dc881136ff6e /src/config/bot.rs | |
| parent | 1f33b3a07a352c57a9787f298cb472c21235a5be (diff) | |
| download | aichat-95221ade461d4da324ebb5de9f2f8d44a34252a0.tar.gz | |
refactor: bot dir/file path (#589)
Diffstat (limited to 'src/config/bot.rs')
| -rw-r--r-- | src/config/bot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/bot.rs b/src/config/bot.rs index 4823d2e..fef61f2 100644 --- a/src/config/bot.rs +++ b/src/config/bot.rs @@ -89,7 +89,7 @@ impl Bot { pub fn export(&self) -> Result<String> { let mut value = serde_json::json!(self); - value["functions_dir"] = Config::bot_functions_dir(&self.name)? + value["functions_dir"] = Config::bot_source_dir(&self.name)? .display() .to_string() .into(); |
