jamesgeer / conf-twitter-bot

A Twitter Bot to post about academic papers
MIT License
4 stars 0 forks source link

Tweet cron #95

Closed jamesgeer closed 1 year ago

jamesgeer commented 1 year ago

Created the "Tweets" cron job which selects all tweets that have been scheduled to send at/before the time the scheduler runs.

The cron will print how many tweets are to be posted: image

image

No tweets to post: image

Only when a tweet is successfully posted to twitter will it's "sent" value be set to true in the database, this means if it fails then it can be attempted with the next cron batch.

Since Twitter only allows four uploads, if there are somehow more than four uploads tied to the tweet then only the first four will be selected for upload.

Before Upload: image

After Upload: image

Closes #28