Skip to content

martgnz/reddit-place-bot

Repository files navigation

Reddit r/place bot

A Twitter bot that tweets a drawing from Reddit's r/place every hour.

Data

The data comes from the r/placeatlas, a database that catalogues all the drawings from the 2022 Reddit place event.

Getting started

To send a tweet you'll need to request elevated access for the Twitter API. After getting access, create a new project, get the API key, API secret, access token and access secret and paste them in a new file called .env following the structure of .env.example.

After sorting out the credentials you can install the dependencies (install Node if you don't have it already):

$ npm install

Now you can generate a random drawing and tweet it. The bot will choose randomly from the all entries in the database, discarding the drawings that have been already tweeted:

$ npm start

Scheduling

This bot uses GitHub actions to schedule a tweet every hour. A simple cron job is used. You can run it more frequently (or less) by adjusting the values in the actions file.

About

A Twitter bot that tweets a drawing from Reddit's r/place every hour.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published