In this guide, we’ll take a look at how to create a Farcaster bot that replies to specific keywords with a frame created on the go specifically for the reply!
@neynar/nodejs-sdk
, so let’s install that as well:
index.ts
:
.env
file in the root of your project and add the following:
SIGNER_UUID
and the neynar api key to the NEYNAR_API_KEY
which you can get from the overview section of the neynar dashboard:
neynarClient.ts
file and add the following:
index.ts
and add this inside the try block:
index.ts
file:
index.ts
before the reply:
index.ts
file should look similar to this complete example.
Don’t forget to restart your server after making these changes!