Unable to use GOAT Plugin
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.
Yes, even I was having this issue. Thanks for the fix @praveen-kaia.
@0xaguspunk can you please review and fix the bug.
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.
this plugin was migrated