This bot will apply condition to selected tweet from @haxpor in real-time then retweet it.
Script refers to server's environment variables for keys and secrets to communicate with Twitter. This is for safety not to expose those things in source code.
Add the following code to server's
~/.bash_profile or equally
export TWITTERBOT_REFRT_CONSUMER_KEY='xxxx' export TWITTERBOT_REFRT_CONSUMER_SECRET='xxxx' export TWITTERBOT_REFRT_ACCESS_TOKEN='xxxx' export TWITTERBOT_REFRT_ACCESS_TOKEN_SECRET='xxxx'
in which those
xxxx can be copied from
https://apps.twitter.com/app by creating a new app, and look at
Keys and Access Token section.
You have to generate access token manually. Just follow along on its website.
See in Real Action
MIT, Wasin Thonkaew