Skip to content

Commit

Permalink
hello world works. next - get currentnews to work
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgreen06 committed Jan 19, 2025
1 parent 4c1477a commit 86213e1
Show file tree
Hide file tree
Showing 5 changed files with 4,013 additions and 2,231 deletions.
1 change: 1 addition & 0 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ export async function createAgent(
// character.plugins are handled when clients are added
plugins: [
bootstrapPlugin,
devSchoolPlugin,
getSecret(character, "CONFLUX_CORE_PRIVATE_KEY")
? confluxPlugin
: null,
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-devschool/src/actions/helloworld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export const helloWorldAction: Action = {
_callback: HandlerCallback
): Promise<boolean> => {
const helloWorld = `
_ _ _ _ __ __ _ _
This is definitely working!
_ _ _ _ __ __ _ _
| | | | | | | \ \ / / | | | |
| |__| | ___| | | ___ \ \ /\ / /__ _ __| | __| |
| __ |/ _ \ | |/ _ \ \ \/ \/ / _ \| '__| |/ _' |
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-devschool/src/actions/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./none.ts";
export * from "./helloworld.ts";
export * from "./currentnews.ts";
3 changes: 2 additions & 1 deletion packages/plugin-devschool/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Plugin } from "@elizaos/core";
import { helloWorldAction } from "./actions/helloworld.ts";
import { currentNewsAction } from "./actions/currentnews.ts";

export * as actions from "./actions/index.ts";
export * as evaluators from "./evaluators/index.ts";
Expand All @@ -8,5 +9,5 @@ export * as providers from "./providers/index.ts";
export const devSchoolPlugin: Plugin = {
name: "devschool",
description: "Dev School example plugin",
actions: [helloWorldAction],
actions: [helloWorldAction, currentNewsAction],
};
Loading

0 comments on commit 86213e1

Please sign in to comment.