This is the source for the Bluesky Hoffbot, but this code could be re-purposed for any daily-posting image/text bot.
The dailyHoff bot runs on a cron job that will post an image and quote at 10am daily.
The likeMentions bot runs on a separate cron job that monitors a custom Feed that aggregates all posts that mention "David Hasselhoff" "The Hoff" or "Hasselhoff" and likes the post.
There is also a bot that "listens" for anyone that follows the bot account and follows back. And there is a bot that "listens" for any bot-specific mentions and likes the post.
cp .env.example .env
Configure environment variables:
BSKY_USERNAME
The username of the bot accountBSKY_PASSWORD
The password of the bot accountDATABASE_FILE
Name of the database file to store interactionsFEED_URI
The URI of the Feed that collects mentionsHOFFBOT_DID
The DID of the Hoffbot account
Add images to resources/hoffpics
Add quotes to quotes.txt
one quote per line
npm run db:init
npm install
npm run start