action_auto_tweet: Post SER tweets from the tweet queue Monday through Friday

View source: R/auto_tweet.R

action_auto_tweetR Documentation

Post SER tweets from the tweet queue Monday through Friday

Description

action_auto_tweet() handles daily tweeting on the SER account. It randomly pulls one tweet from the tweet queue per day to post. It cycles through each tweet before posting a tweet again. Additionally, there is a 1 in 10 chance that it will instead retweet a popular SER tweet. This function will not post anything if it is a blackout date. It causes several side effects, including downloading the tweet and retweet queue, posting tweets, and updating the files on Google Drive. Requires Google Drive and Twitter authorization.

Usage

action_auto_tweet(
  twitter_token = ser_token,
  google_drive_auth = drive_auth_token(),
  todays_date = get_day()
)

Arguments

twitter_token

an rtweet token for the SER app

google_drive_auth

the name of the google drive authorization file

Value

a data frame containing the updated tweet queue


SERTwitter/ser documentation built on June 27, 2022, 7:37 p.m.