Skip to content

portableant/vambot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VAMBot

A simple Twitter bot that tweets details from the V&A Museum API v2 (released 15/4/2021), which is well documented by their team.

This bot is an R script, powered via a Github action. Inspired a bit by Londonmapbot's code which showed me how to automate the R script via an action.

This script calls a random object from the collections with an image attached, constructs a tweet and sends it with the url for the record.

How to run this

  1. Create a Twitter account for your bot
  2. Sign up for a developer access with Twitter
  3. Fork this repo (or just copy the code into a new repo)
  4. Obtain your API keys from Twitter and add them as GitHub secrets
  5. Edit variables retrieved from the api in the vambot-tweet.R file
  6. Edit the .github/workflows/vambot.yml file to adjust the cron schedule Every 10 mins past the hour at the moment.
  7. GitHub Actions run or throw a tantrum (if your keys are wrong for instance.)

License

GPL V3