Skip to content

Commit 8708e0e

Browse files
author
mike dupont
committed
adding debug
1 parent aef8703 commit 8708e0e

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

agent/src/index.ts

+10-6
Original file line numberDiff line numberDiff line change
@@ -521,14 +521,18 @@ export async function initializeClients(
521521
for (const plugin of character.plugins) {
522522
if (plugin.clients) {
523523
for (const client of plugin.clients) {
524-
const startedClient = await client.start(runtime);
525-
elizaLogger.debug(
526-
`Initializing client: ${client.name}`
527-
);
524+
try {
525+
elizaLogger.debug( `before client: ${client.name}` );
526+
const startedClient = await client.start(runtime);
527+
elizaLogger.debug( `Initializing client: ${client.name}` );
528528

529-
console.log("DEBUG",client);
529+
console.log("DEBUG",client);
530+
clients.push(startedClient);
531+
} catch (error:any) {
532+
console.log(error)
533+
}
530534

531-
clients.push(startedClient);
535+
532536
}
533537
}
534538
}

characters/zos.character.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"plugins": [
44
"@elizaos-plugins/plugin-speech-tts",
55
"@elizaos-plugins/client-twitter",
6-
"@elizaos-plugins/client-discord",
6+
77
"@elizaos-plugins/plugin-twitter",
88
"@elizaos-plugins/client-telegram"
99
],

0 commit comments

Comments
 (0)