# elizaOS Development Discord - 2025-04-10

## Overall Discussion Highlights

### ElizaOS v2 Migration and Implementation
- The community is actively working on migrating plugins from v1 to v2
- V2 rollout is still in progress, not yet fully stable
- Users are utilizing the monorepo setup command (`npx @elizaos/cli@beta setup-monorepo`) for migration
- Some users are experiencing package management errors when installing plugins in v2
- A critical bug in v1 related to a dependency update is causing problems

### Recurring Tasks Implementation
- Discussion about implementing recurring tasks for posting messages to Discord channels
- Clarification that the `createTask` function is a v2 feature (available in `v2-develop` branch)
- Alternative approaches for v1 users were suggested, involving custom service classes with timer functionality

### Twitter Integration Issues
- Users reported problems with Twitter integration not connecting to their Characters
- Discussion about Twitter API access and credentials not being recognized by the dashboard

## Key Questions & Answers

**Q: How do I migrate a plugin to be used in v2?** (asked by LemonS)  
**A:** Use `npx @elizaos/cli@beta setup-monorepo`, check package/plugin-starter/index.ts for structure, or look at other plugins like openai and twitter (answered by sayonara)

**Q: Is v2 fully out and stable, or is the rollout still happening?** (asked by Matthew Liu)  
**A:** Roll out is still happening (answered by Odilitime)

**Q: Is task working in ElizaOS? AgentRuntime class does not have `createTask` function** (asked by Martin Rivera)  
**A:** It's a v2 feature, you need to use `git checkout origin/v2-develop` (answered by shaw)

**Q: Is there alternative in V1? I want to run action every hour to post messages in Discord Channel** (asked by Martin Rivera)  
**A:** You can make a service that gets the runtime discord client (runtime.getClient) and calls post on a loop. Look at other Service type classes, you just need one that starts a timer in constructor (answered by shaw)

**Q: Service is also `v2` feature.** (asked by Martin Rivera)  
**A:** Should be in v1 as well, I consolidated services and clients, but for example, a pdf service, but its just some class on runtime that can call other stuff (answered by shaw)

## Community Help & Collaboration

### Plugin Migration Assistance
- **sayonara** helped **LemonS** with migrating a plugin to v2 by providing CLI command for monorepo setup and suggesting checking plugin-starter structure
- **Nisita** reinforced sayonara's advice and shared a video resource with disclaimer about possible changes
- **Ξ2T** acknowledged successful help from another user with getting v2 set up

### Recurring Tasks Implementation
- **shaw** guided **Martin Rivera** through implementing recurring tasks in ElizaOS v1, suggesting a custom service with timer functionality as an alternative to the v2 `createTask` function

## Action Items

### Technical
- Fix v1 bug related to dependency update in PR #4232 (mentioned by shaw)
- Complete the v2 rollout to address package management errors when installing plugins (mentioned by Matthew Liu)
- Implement a custom service class with timer functionality for recurring Discord messages in ElizaOS v1 (mentioned by shaw)

### Documentation
- Update documentation for tasks in ElizaOS v2 as the AgentRuntime class doesn't have createTask function (mentioned by Martin Rivera)
- Document differences between v1 and v2 features in ElizaOS to clarify which features like tasks and services are available in which versions (mentioned by shaw)