0.2.9 • Published 9 months ago

@reality.eth/atproto-bot v0.2.9

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
9 months ago

Atproto bot (Bluesky)

This script will skeet out new reality.eth questions and answers.

It does this by querying the graph endpoints specified in @reality.eth/contracts.

It hits the bsky.social API endpoints but you should be able to replace them with your own self-hosted PDS if you prefer.

Setting it up

Copy env.sample to .env and put in a username and password.

You should also make a directory called state which will store the files tracking how much has been tweeted out so far.

Install dependencies either from packages/atproto-bot with npm install or from the top level of the repo with lerna bootstrap.

Initializing

cd packages/atproto-bot

The script is run with

tsx index.js 1,100

...where 1 and 100 are the chains you wish to tweet about. You can add the chain ID of any other chain with a graph endpoint set in @reality.eth/contracts.

The first time a new chain is initialized it should be run with the init flag.

node index.js 1,100 init

This will create a state file for the chain at the current timestamp. You can edit this manually if you want to tweet some of the existing entries.

Running automatically

Make a cron, eg to run every second we use:

* * * * * cd /home/ed/monorepo-twitter/packages/atproto-bot && node index.js 1,100

Lock files

The script uses lock files under state to ensure only one process is trying to tweet about a given chain at a time. If something breaks and the lock file isn't deleted, you may need to delete this file manually.

0.2.9

9 months ago

0.2.8

9 months ago

0.2.7

11 months ago

0.2.6

11 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.1.2

12 months ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago