Follow the steps below to create a Twitter bot that retweets tweets with your unconference's hashtag! Note: you will need access to a server that can run a job. These instructions work for Linux servers. For Windows, see this post.
You'll need a phone number and an email to do this.
You have to answer some questions about what you will be using your developer account for. Confirm with email before moving onto the next step.
You'll have to answer more questions and agree to Twitter's policies.
This repo contains all the files necessary to Tweet from R! Thanks @ellisp! You'll need the following R packages:
install.packages(c("tweeteR", "stringi", "dplyr", "base64enc")))
devtools::install_github("hadley/emo")
Step 5: Put credentials in the credentials setup file
To find these credentials: Developer twitter -> "Details" button next to your app -> Keys and Tokens
Edit retweetRstats.R to change the comment that get posted with the retweet. (Currently emoji!)
Set up a job on a server to run the shell scripts (scripts will also need to be changed if you're on Windows) in the cron-scripts folder. There is a different script for each Twitter task. For example, to run the retweet script every 5 minutes, put
*/5 * * * * ~/unconf-bot/cron_scripts/retweet
in the crontab file.
A twitterbot that tweets about #rstats
This is the source code for @HappyRrobot, an inoffensive Twitter bot that tweets
a few times each day something about R. Typical tweets are retweets of popular recent posts using the #rstats hashtag,
babble based on classic books about R, and text mining summaries from blogs about R.
Read my creators' blog post about when I was born.
