Skip to content

Commit

Permalink
Merge pull request elizaOS#487 from bmgalego/improvements
Browse files Browse the repository at this point in the history
fix: fix character path loading
  • Loading branch information
bmgalego authored Nov 21, 2024
2 parents 13041fb + 0451744 commit 9879359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function loadCharacters(
): Promise<Character[]> {
let characterPaths = charactersArg?.split(",").map((filePath) => {
if (path.basename(filePath) === filePath) {
filePath = "./characters/" + filePath;
filePath = "../characters/" + filePath;
}
return path.resolve(process.cwd(), filePath.trim());
});
Expand Down

0 comments on commit 9879359

Please sign in to comment.