Twitter bot tweeting dummy text based on words/sentences found in Twitter search results. Packed as a Serverless function configured with AWS Lamdba + CloudWatch cron trigger.
Searches for tweets based on a hashtag and uses obtained tweet texts to create Markov chains and adds the hashtag used for the search.
- Install nodejs and Serveless framework (
npm install -g serveless
) - Install dependencies
npm install
- Copy config.example.json to config.json and insert Twitter app credentials + hashtag used for searches and tweets
- Modify function details (such as tweeting interval) if needed in serverless.yml
- Deploy function with
serverless deploy