neophob / wpc-bot

Twitter Bot running AWS Lambda

Home Page:https://twitter.com/WPCPinball

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wpc-bot

Twitter Bot - an AWS Playground

TODO

  • detect similar / identical images - aka avoid double posts
  • include more stuff on the image (RAM overview)
  • load state where the game is already started

Run Locally

  • You need a twitter dev account
  • You need to create a rom directory and add the WPC roms yourself
  • change to the lib directory then run
TWITTER_CONSUMER_KEY=.. TWITTER_CONSUMER_SECRET=.. TWITTER_ACCESS_TOKEN=.. TWITTER_ACCESS_TOKEN_SECRET=.. node run.js

Run on AWS

  • CloudWatch triggers the Lambda function, scheduled once per hour (or use claudia add-scheduled-event)
  • TODO: Create AWS Lambda layers: "node_modules" and "rom" are independent layers -> failed to test!

Deploy Serverless

About

Twitter Bot running AWS Lambda

https://twitter.com/WPCPinball

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%