Identify haiku on Twitter and post them
- Refer to
./config.json.template
to create your./config.json
- Create a Twitter account for your bot, follow the accounts you're interested in
- Create an app on Twitter to get your API keys
- Save your API keys and account name in
./config.json
- Create an S3 bucket for your bot (this is used to store your last seen tweetId)
- Create access keys for your AWS account
- Save your access keys and S3 bucket config in
./config.json
- Run
npm run build
in the project root - Create a Lambda function, upload
dist.zip
from the previous step, and inputlambda.myHandler
as the handler - Set up a CloudWatch rule for your bot's update interval (ex: 10 minutes)
- Run
npm run build
in the project root - Install and configure the AWS Command Line Interface
- From your project root:
aws lambda update-function-code \
--function-name YOUR_LAMBDA \
--zip-file fileb://./dist.zip
Your account name in ./config.json
should be preventing this, check for typos.
A tweet's text will include the parent's username if the parent and child are different users.