This bot broadcasts on the farcaster network each time a user is blocked by another user. It also posts a ranking of the most blocked users and the most blockers daily
- Clone the repository
https://github.com/Complexlity/fc-block-bot.git
cd fc-block-bot
- Install dependencies
pnpm install
- Rename
.env.sample
to.env
mv .env.sample .env
- Get Updated Rankings in your DB
pnpm run scrape
Optional. But recommended if you want the bot to post rankings. If you don't, remove START_RANKINGS_JOB=true from .env
- Run the bot
pnpm run dev
If you don't have a signer uuid, you can get one with the following steps:
- Updated .env file with the mnemonic of the bot account.
...other variables
FARCASTER_DEVELOPER_MNEMONIC=<your_farcaster_developer_mnemonic>
- Install some more dependencies
pnpm install @farcaster/hub-nodejs @neynar/nodejs-sdk viem
- Generate Signer UUID
pnpm run generate
- Navigate to the generated file
signerUuid.json
{
"signer_uuid": <your-generated-uuid>,
"public_key": <your-public-key>,
"status": "pending_approval",
"signer_approval_url": "https://client.warpcast.com/deeplinks/signed-key-request?token=<your-token>"
}
-
Copy the
signer_approval_url
-
Open the link in your mobile browser on a device with the warpcast app installed and the account ()
-
Approve the request
-
Copy the
signer_uuid
fromsignerUuid.json
-
Paste the
signer_uuid
as the value ofSIGNER_UUID
in the .env file -
Uninstall the extra dependencies
pnpm uninstall @farcaster/hub-nodejs @neynar/nodejs-sdk viem
- Run the bot
pnpm run dev