Skip to content

Commit 423a4ed

Browse files
author
mike dupont
committed
handling get error fail
1 parent 24df7b0 commit 423a4ed

File tree

10 files changed

+66
-22
lines changed

10 files changed

+66
-22
lines changed

packages/cli/src/characters/eliza.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dotenv.config({ path: "../../.env" });
1616
* @property {Object} style - Object containing guidelines for communication style
1717
*/
1818
export const character: Character = {
19-
name: "Eliza",
19+
name: "Eliza2",
2020
plugins: [
2121
"@elizaos/plugin-sql",
2222
...(process.env.OPENAI_API_KEY ? ["@elizaos/plugin-openai"] : []),

packages/project-starter/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dotenv.config({ path: "../../.env" });
1515
* Eliza's responses are geared towards resolving issues, offering guidance, and maintaining a positive community environment.
1616
*/
1717
export const character: Character = {
18-
name: "Eliza",
18+
name: "Eliza5",
1919
plugins: [
2020
"@elizaos/plugin-sql",
2121
...(process.env.OPENAI_API_KEY ? ["@elizaos/plugin-openai"] : []),

packages/the-org/src/communityManager/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dotenv.config({ path: "../../.env" });
3131
* @property {Object} style - Object containing style guidelines for the character's responses
3232
*/
3333
export const character: Character = {
34-
name: "Eliza",
34+
name: "Eliza3",
3535
plugins: [
3636
"@elizaos/plugin-sql",
3737
"@elizaos/plugin-anthropic",

packages/the-org/src/devRel/index.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ const character: Partial<Character> = {
180180
"@elizaos/plugin-discord",
181181
"@elizaos/plugin-telegram",
182182
"@elizaos/plugin-twitter",
183-
"@elizaos-plugins/plugin-speech-tts",
184-
"@elizaos-plugins/client-twitter",
185-
"@elizaos-plugins/client-discord",
186-
"@elizaos-plugins/plugin-twitter",
187-
"@elizaos-plugins/client-telegram"
183+
//"@elizaos-plugins/plugin-speech-tts",
184+
//"@elizaos-plugins/client-twitter",
185+
//"@elizaos-plugins/client-discord",
186+
//"@elizaos-plugins/plugin-twitter",
187+
//"@elizaos-plugins/client-telegram"
188188
],
189189
settings: {
190190
secrets: {

packages/the-org/src/index.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ dotenv.config({ path: "../../.env" });
33

44
// Use a more generic type definition since 'Project' or 'ProjectType' might not be exported
55
import { logger } from "@elizaos/core";
6-
import communityManager from "./communityManager";
6+
//import communityManager from "./communityManager";
77
import devRel from "./devRel";
8-
import investmentManager from "./investmentManager";
9-
import liaison from "./liaison";
10-
import projectManager from "./projectManager";
11-
import socialMediaManager from "./socialMediaManager";
8+
//import investmentManager from "./investmentManager";
9+
//import liaison from "./liaison";
10+
//import projectManager from "./projectManager";
11+
//import socialMediaManager from "./socialMediaManager";
1212

1313
/**
1414
* Checks if all required environment variables for an agent are available
@@ -127,11 +127,11 @@ function hasRequiredEnvVars(agent: any): boolean {
127127
// Filter agents based on available environment variables
128128
const availableAgents = [
129129
devRel,
130-
communityManager,
131-
investmentManager,
132-
liaison,
133-
projectManager,
134-
socialMediaManager,
130+
//communityManager,
131+
//investmentManager,
132+
//liaison,
133+
//projectManager,
134+
//socialMediaManager,
135135
].filter(hasRequiredEnvVars);
136136

137137
export const project = {

packages/the-org/src/init.ts

+44
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,53 @@ export async function initializeAllSystems(
9494

9595
try {
9696
for (const server of servers) {
97+
console.log("Initializing onboarding for server", server.id);
98+
console.log("Server name", server.name);
99+
if (!server.ownerId) {
100+
logger.error("No owner ID found for server", server.id);
101+
// continue;
102+
}
103+
if (!server.id) {
104+
logger.error("No server ID found for server", server.name);
105+
// continue;
106+
}
107+
if (!server.name) {
108+
logger.error("No server name found for server", server.id);
109+
//continue;
110+
}
111+
if (!server.members) {
112+
logger.error("No members found for server", server.id);
113+
// continue;
114+
}
115+
if (!server.channels) {
116+
logger.error("No channels found for server", server.id);
117+
// continue;
118+
}
119+
if (!server.roles) {
120+
logger.error("No roles found for server", server.id);
121+
// continue;
122+
}
123+
if (!server.emojis) {
124+
logger.error("No emojis found for server", server.id);
125+
// continue;
126+
}
127+
97128
const worldId = createUniqueUuid(runtime, server.id);
98129
const ownerId = createUniqueUuid(runtime, server.ownerId);
99130

131+
logger.info("Looking for", worldId);
132+
logger.info("Looking in ", runtime);
133+
134+
try {
135+
const existingWorld = await runtime.getWorld(worldId);
136+
if (existingWorld) {
137+
logger.info("World already exists for server", server.id);
138+
continue;
139+
}
140+
} catch (error) {
141+
logger.info("World does not exist for server", server.id);
142+
}
143+
100144
const existingWorld = await runtime.getWorld(worldId);
101145
if (existingWorld.metadata?.settings) {
102146
logger.info("Onboarding already initialized for server", server.id);

packages/the-org/src/investmentManager/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dotenv.config({ path: "../../.env" });
3434
* @property {Object} style - Object containing communication style guidelines for the character
3535
*/
3636
const character: Character = {
37-
name: "Spartan",
37+
name: "Spartan3",
3838
plugins: [
3939
"@elizaos/plugin-sql",
4040
"@elizaos/plugin-anthropic",

packages/the-org/src/liaison/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dotenv.config({ path: "../../.env" });
2525
* @property {Object} secrets - The secrets related to the character.
2626
*/
2727
const character: Character = {
28-
name: "Ruby",
28+
name: "Ruby43",
2929
plugins: [
3030
"@elizaos/plugin-sql",
3131
"@elizaos/plugin-anthropic",

packages/the-org/src/projectManager/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dotenv.config({ path: "../../.env" });
2626
* @property {Object} secrets - The secrets object containing sensitive information.
2727
*/
2828
const character: Character = {
29-
name: "Jimmy",
29+
name: "Jimmy43",
3030
plugins: [
3131
"@elizaos/plugin-sql",
3232
"@elizaos/plugin-anthropic",

packages/the-org/src/socialMediaManager/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dotenv.config({ path: "../../.env" });
3737
* @property {Object} style - Object containing guidelines for communication style in different scenarios.
3838
*/
3939
const character: Character = {
40-
name: "Laura",
40+
name: "Laura23",
4141
plugins: [
4242
"@elizaos/plugin-sql",
4343
"@elizaos/plugin-anthropic",

0 commit comments

Comments
 (0)