Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neophob/wpc-bot
Twitter Bot running AWS Lambda
https://github.com/neophob/wpc-bot
Last synced: 22 days ago
JSON representation
Twitter Bot running AWS Lambda
- Host: GitHub
- URL: https://github.com/neophob/wpc-bot
- Owner: neophob
- License: gpl-3.0
- Created: 2020-04-15T19:01:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T12:30:18.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T10:11:26.565Z (2 months ago)
- Language: JavaScript
- Homepage: https://twitter.com/WPCPinball
- Size: 98.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- Use: https://claudiajs.com/, `npm install claudia -g`
- NOT Tested: https://serverless.com/, `npm install serverless -g`