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

Add farcaster contest bot #10335

Merged
merged 6 commits into from
Dec 19, 2024
Merged

Add farcaster contest bot #10335

merged 6 commits into from
Dec 19, 2024

Conversation

rbennettcw
Copy link
Contributor

@rbennettcw rbennettcw commented Dec 17, 2024

Link to Issue

Closes: #10302

Description of Changes

  • Adds FC contest bot that posts a confirmation message when the user has added content to a contest
    • Also posts message if user isn't eligible to add content (no verified address)

Test Plan

  • Set NEYNAR_API_KEY and NEYNAR_BOT_UUID envs (ping me if needed)
  • Make FC contest, post contest, post reply, wait a few seconds until content projection is saved, confirm that bot sends reply message to content cast

Deployment Plan

  • In Neynar dashboard, ensure that the QA/Production apps have a generated bot (requires signing wallet), get the bot UUID
  • Set env NEYNAR_BOT_UUID to bot UUID

Other Considerations

  • The issue with having the bot send error messages is that we often retry failed policies, so if the bot responds naively to failure, it'll repeat the same message 3 times. We could either prevent the failures from retrying (via ack), or track failure count in the DB. Neither solution is ideal.

@dillchen dillchen mentioned this pull request Dec 17, 2024
5 tasks
Copy link
Collaborator

@timolegros timolegros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 nits - haven't tested

libs/model/src/config.ts Outdated Show resolved Hide resolved
libs/shared/src/utils.ts Outdated Show resolved Hide resolved
@rbennettcw rbennettcw merged commit 9acb7a3 into master Dec 19, 2024
10 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.

Contestbot for Farcaster Contests V1
3 participants