Skip to content

feat: Lens client#1098

Merged
lalalune merged 4 commits into
elizaOS:developfrom
clawdvine:feat/client-lens
Dec 14, 2024
Merged

feat: Lens client#1098
lalalune merged 4 commits into
elizaOS:developfrom
clawdvine:feat/client-lens

Conversation

@imthatcarlos
Copy link
Copy Markdown
Contributor

Background

What does this PR do?

Adding a new client for Lens a decentralized social protocol. Basic client functionality for fetching a timeline, fetching mentions, and creating a post or comment.

What kind of change is this?

Features (non-breaking change which adds functionality)

Why are we doing this? Any context or related work?

This client allows agents to post to Lens, a social graph that is permissionless and provides a more onchain environment for agents, with a variety of monetization options including collectable posts and open actions.

This client is similar to the latest Farcaster client and serves as a base for other devs to include more Lens functionality.

Documentation changes needed?

My changes do not require a change to the project documentation.

Testing

Where should a reviewer start?

A few .env variables are needed

# client-lens
EVM_PRIVATE_KEY=
LENS_PROFILE_ID=
STORJ_API_USERNAME=
STORJ_API_PASSWORD=

In the defaultCharacter.ts - add the new client to the clients array

import { Character, ModelProviderName, Clients } from "./types.ts";

export const defaultCharacter: Character = {
    name: "Eliza",
    username: "eliza",
    plugins: [],
    clients: [Clients.LENS],
    modelProvider: ModelProviderName.GROK,

Detailed testing steps

  1. set new .env variables
  2. add client to character file
  3. start the server
  4. agent fetches timeline to generate a new post, and fetches mentions to generate comments
  5. if agent creates a post, check it at https://hey.xyz/u/{agentHandle}

Discord username

imthatcarlos

@imthatcarlos imthatcarlos changed the title Feat/client lens Lens client Dec 14, 2024
@imthatcarlos imthatcarlos changed the base branch from main to develop December 14, 2024 16:01
@odilitime odilitime changed the title Lens client feat: Lens client Dec 14, 2024
@lalalune lalalune merged commit 7a12096 into elizaOS:develop Dec 14, 2024
@imthatcarlos imthatcarlos deleted the feat/client-lens branch February 10, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants