To install dependencies:
bun installTo run:
bun startSonatabot adds a comment to all the casts that are indexed.
It uses an ED25519 signer from the bot farcaster account to sign messages.
To set up the bot, you need to generate a SIGNER_PRIVATE_KEY. Follow these steps:
-
Add the following environment variables to your
.envfile:APP_FIDAPP_MNEMONIC
-
Run the following command to generate the signer:
bun generate-signer
-
This command will return:
- A private key (to be used as
SIGNER_PRIVATE_KEY) - A deeplink URL
- A private key (to be used as
-
Open the deeplink URL in Warpcast to authorize the private key.
-
Add the
SIGNER_PRIVATE_KEYto your.envfile:SIGNER_PRIVATE_KEY=your_generated_private_key
-
Run the following command to generate the signer:
bun test-signer
-
The bot should create a new cast saying 'Hello World!'