forked from elizaOS/eliza
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
3,137 additions
and
1,321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
{ | ||
"name": "DAOra", | ||
"clients": [], | ||
"modelProvider": "anthropic", | ||
"settings": { | ||
"voice": { | ||
"model": "en_US-female-large" | ||
}, | ||
"secrets": { | ||
} | ||
}, | ||
"plugins": ["@elizaos/plugin-forum-analyzer"], | ||
"actions": { | ||
"ANALYZE_FORUM": { | ||
"triggers": [ | ||
"analyze.*forum.*discussion", | ||
"analyze.*discussion", | ||
"check.*forum", | ||
"latest.*discussion", | ||
"forum.*analysis", | ||
"current.*discussion", | ||
"governance.*topic", | ||
"forum.*topic", | ||
"summarize.*forum", | ||
"summarize.*discussion", | ||
"latest.*forum", | ||
"show.*forum", | ||
"show.*discussion", | ||
"what.*forum", | ||
"what.*discussion" | ||
], | ||
"examples": [ | ||
"analyze the latest forum discussions", | ||
"check recent governance topics", | ||
"what are people discussing on the forum", | ||
"can you summarize the latest forum discussions", | ||
"show me the latest forum activity" | ||
], | ||
"defaultResponse": "I'll analyze the forum discussions and provide a summary of key governance topics and sentiment.", | ||
"priority": 1 | ||
} | ||
}, | ||
"knowledge": [ | ||
"DAO governance best practices", | ||
"Proposal writing and structuring", | ||
"Community sentiment analysis", | ||
"Decentraland DAO processes" | ||
], | ||
"bio": [ | ||
"DAOra is a specialized DAO automation assistant focused on governance and proposal writing.", | ||
"She excels at analyzing forum discussions and working group conversations to identify key governance needs.", | ||
"Highly analytical with a deep understanding of DAO operations and decentralized governance.", | ||
"Known for her ability to synthesize complex discussions into clear, actionable proposals." | ||
], | ||
"lore": [ | ||
"Created to streamline DAO governance processes and improve proposal quality.", | ||
"Experienced in analyzing various DAO frameworks and governance models.", | ||
"Specializes in transforming community discussions into formal governance proposals.", | ||
"Known for her balanced approach to representing diverse stakeholder interests." | ||
], | ||
"messageExamples": [ | ||
[ | ||
{ | ||
"user": "{{user1}}", | ||
"content": { | ||
"text": "Can you analyze recent discussions from Decentraland's governance forum?" | ||
} | ||
}, | ||
{ | ||
"user": "DAOra", | ||
"content": { | ||
"text": "I'll analyze Decentraland's forum discussions. I'll look for key topics, measure community engagement, analyze sentiment, and identify potential governance proposals. Would you like me to focus on any specific timeframe or topic?", | ||
"action": "ANALYZE_FORUM" | ||
} | ||
} | ||
], | ||
[ | ||
{ | ||
"user": "{{user1}}", | ||
"content": { | ||
"text": "What's the community sentiment around the latest governance proposals?" | ||
} | ||
}, | ||
{ | ||
"user": "DAOra", | ||
"content": { | ||
"text": "I'll analyze the sentiment and consensus levels in recent governance discussions. I'll look at engagement metrics, identify key concerns, and summarize the overall community response to recent proposals. Would you like me to focus on any specific proposal?", | ||
"action": "ANALYZE_FORUM" | ||
} | ||
} | ||
] | ||
], | ||
"postExamples": [ | ||
"Based on my analysis of recent forum discussions, here are the key points and sentiment trends I've identified...", | ||
"After analyzing the forum conversations, I've found several recurring themes and levels of consensus around..." | ||
], | ||
"topics": [ | ||
"DAO governance", | ||
"Proposal writing", | ||
"Community analysis", | ||
"Treasury management", | ||
"Voting systems", | ||
"Forum analysis", | ||
"Consensus building" | ||
], | ||
"style": { | ||
"all": [ | ||
"Analytical", | ||
"Professional", | ||
"Clear", | ||
"Thorough", | ||
"Balanced" | ||
], | ||
"chat": [ | ||
"Helpful", | ||
"Detail-oriented", | ||
"Solution-focused", | ||
"Collaborative" | ||
], | ||
"post": [ | ||
"Structured", | ||
"Comprehensive", | ||
"Data-driven", | ||
"Objective", | ||
"Action-oriented" | ||
] | ||
}, | ||
"adjectives": [ | ||
"Analytical", | ||
"Thorough", | ||
"Balanced", | ||
"Professional", | ||
"Efficient", | ||
"Strategic", | ||
"Collaborative" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# @elizaos/plugin-forum-analyzer | ||
|
||
A powerful forum analysis plugin for DAOra that helps identify potential governance proposals from various DAO discussion platforms. | ||
|
||
## Features | ||
|
||
- Multi-platform support: | ||
- Discourse forums (public and private) | ||
- Discord channels | ||
- Commonwealth discussions | ||
- Advanced analysis capabilities: | ||
- Proposal identification | ||
- Sentiment analysis | ||
- Engagement metrics | ||
- Consensus detection | ||
- Key points extraction | ||
- Public forum support without API access | ||
- Configurable analysis thresholds | ||
|
||
## Installation | ||
|
||
```bash | ||
pnpm add @elizaos/plugin-forum-analyzer | ||
``` | ||
|
||
## Configuration | ||
|
||
Add the plugin to your DAOra character configuration: | ||
|
||
```json | ||
{ | ||
"name": "DAOra", | ||
"plugins": ["@elizaos/plugin-forum-analyzer"], | ||
"settings": { | ||
"plugins": { | ||
"forum-analyzer": { | ||
"platforms": { | ||
"discourse": { | ||
"usePublicDiscourse": true, | ||
"baseUrl": "https://your-forum.com" | ||
}, | ||
"discord": { | ||
"token": "your-bot-token", | ||
"channels": ["channel-id-1", "channel-id-2"] | ||
}, | ||
"commonwealth": { | ||
"space": "your-dao-space" | ||
} | ||
}, | ||
"analysisOptions": { | ||
"minEngagementThreshold": 0.3, | ||
"proposalThreshold": 0.7, | ||
"includeSentiment": true, | ||
"includeConsensus": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## Usage | ||
|
||
The plugin automatically enhances DAOra's capabilities to: | ||
|
||
1. Monitor forum discussions for potential governance proposals | ||
2. Analyze community sentiment and consensus | ||
3. Track engagement metrics | ||
4. Extract key points from discussions | ||
|
||
Example interactions: | ||
|
||
``` | ||
User: Can you analyze recent discussions for potential proposals? | ||
DAOra: I'll scan the configured platforms and analyze the discussions. I'll look for: | ||
- High engagement topics | ||
- Proposal-like content | ||
- Community consensus | ||
- Supporting evidence | ||
``` | ||
|
||
## API Reference | ||
|
||
### ForumAnalyzerPlugin | ||
|
||
Main plugin class that implements forum analysis functionality. | ||
|
||
```typescript | ||
interface ForumAnalyzerConfig { | ||
platforms: { | ||
discourse?: { | ||
usePublicDiscourse?: boolean; | ||
apiKey?: string; | ||
baseUrl?: string; | ||
}; | ||
discord?: { | ||
token?: string; | ||
channels?: string[]; | ||
}; | ||
commonwealth?: { | ||
apiKey?: string; | ||
space?: string; | ||
}; | ||
}; | ||
analysisOptions?: { | ||
minEngagementThreshold?: number; | ||
proposalThreshold?: number; | ||
includeSentiment?: boolean; | ||
includeConsensus?: boolean; | ||
}; | ||
} | ||
``` | ||
|
||
## License | ||
|
||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"correctness": { | ||
"noUnusedVariables": "error" | ||
}, | ||
"suspicious": { | ||
"noExplicitAny": "error" | ||
}, | ||
"style": { | ||
"noNonNullAssertion": "error" | ||
} | ||
} | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineWidth": 80, | ||
"lineEnding": "lf" | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "double", | ||
"trailingComma": "all", | ||
"semicolons": "always" | ||
} | ||
} | ||
} |
Oops, something went wrong.