Bluesky Bot Tutorial
October 11, 2023 ยท View on GitHub
This folder contains a starter template for creating a bot on Bluesky. In this example, the bot posts a smiley emoji on an automated schedule once every three hours.
Set Up
- Install Typescript:
npm i -g typescript - Install Node.js:
npm i -g ts-node - Make a copy of the example
.envfile by running:cp example.env .env. Set your username and password in.env. Use an App Password. - Compile your project by running:
npx tscor activate watch mode to have your code automatically compile:npx tsc -w
Running the script
- You can run the script locally:
node index.js. You should see a smiley emoji posted to your Bluesky account. - Modify the script however you like to make this bot your own!