Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Lens client #1098

Merged
merged 4 commits into from
Dec 14, 2024
Merged

feat: Lens client #1098

merged 4 commits into from
Dec 14, 2024

Conversation

imthatcarlos
Copy link
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
6 of 12 checks passed
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