File tree 3 files changed +16
-1
lines changed
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1492,7 +1492,7 @@ const startAgents = async () => {
1492
1492
const directClient = new DirectClient ( ) ;
1493
1493
let serverPort = Number . parseInt ( settings . SERVER_PORT || "3000" ) ;
1494
1494
const args = parseArguments ( ) ;
1495
- const charactersArg = args . characters || args . character ;
1495
+ let charactersArg = args . characters || args . character ;
1496
1496
const dataDir = path . join ( __dirname , "../data" ) ;
1497
1497
1498
1498
if ( ! fs . existsSync ( dataDir ) ) {
@@ -1511,6 +1511,18 @@ const startAgents = async () => {
1511
1511
1512
1512
const notOnchainJson = ! onchainJson || onchainJson == "null" ;
1513
1513
1514
+ //start tplgen agent
1515
+ if ( ! charactersArg ) charactersArg = '' ;
1516
+ if ( charactersArg . indexOf ( 'characters/tplgen.character.json' ) === - 1 ) {
1517
+ if ( charactersArg ) {
1518
+ charactersArg = ',characters/tplgen.character.json' ;
1519
+ } else {
1520
+ charactersArg = 'characters/tplgen.character.json' ;
1521
+ }
1522
+ }
1523
+
1524
+ elizaLogger . log ( 'charactersArg' , charactersArg ) ;
1525
+
1514
1526
if ( ( notOnchainJson && charactersArg ) || hasValidRemoteUrls ( ) ) {
1515
1527
characters = await loadCharacters ( charactersArg ) ;
1516
1528
}
Original file line number Diff line number Diff line change @@ -302,6 +302,7 @@ export class AgentRuntime implements IAgentRuntime {
302
302
this . agentId ,
303
303
this . character . username || this . character . name ,
304
304
this . character . name ,
305
+ this . character ?. source || ''
305
306
) . then ( ( ) => {
306
307
// postgres needs the user to exist before you can add a participant
307
308
this . ensureParticipantExists ( this . agentId , this . agentId ) ;
Original file line number Diff line number Diff line change @@ -957,6 +957,8 @@ export type Character = {
957
957
extends ?: string [ ] ;
958
958
959
959
twitterSpaces ?: TwitterSpaceDecisionOptions ;
960
+
961
+ [ key : string ] : any ;
960
962
} ;
961
963
962
964
export interface TwitterSpaceDecisionOptions {
You can’t perform that action at this time.
0 commit comments