eliza icon indicating copy to clipboard operation
eliza copied to clipboard

Unable to use GOAT Plugin

Open praveen-kaia opened this issue 8 months ago • 2 comments

Describe the bug

The GOAT plugin https://github.com/elizaos-plugins/plugin-goat doesnt work after eliza separation of plugins .

To Reproduce

1. Install the goat plugin in current stable version of elizaos -> npx elizaos plugins install @elizaos-plugins/plugin-goat
2. Add "plugins": ["@elizaos-plugins/plugin-goat"] to the characterfile and provide appropriate secrets.
3. Run the eliza with the character file. Even though the plugin is activated, the actions are not triggered.

The reason i found was with GOAT plugin returning a async function instead of a json structure. https://github.com/elizaos-plugins/plugin-goat/blob/main/src/index.ts#L5.

Because of this https://github.com/elizaOS/eliza/blob/main/agent/src/index.ts#L390 the current elizaos logic doesnt handle this plugin properly. This type of async exported plugins can work if in eliza, the code changes to

await importedPlugin.default(secrets) instead of importedPlugin.default in above mentioned line L390

Expected behavior

Plugins with Async exported functions has to work.

praveen-kaia avatar Apr 16 '25 06:04 praveen-kaia

Yes, even I was having this issue. Thanks for the fix @praveen-kaia.

@0xaguspunk can you please review and fix the bug.

suryanshkushwaha avatar Apr 16 '25 08:04 suryanshkushwaha

This issue has been automatically marked as stale due to 30 days of inactivity. If no further activity occurs within 7 days, it will be closed automatically. Please take action if this issue is still relevant.

github-actions[bot] avatar May 16 '25 18:05 github-actions[bot]

this plugin was migrated

wtfsayo avatar Jul 13 '25 16:07 wtfsayo