This bot will apply condition to selected tweet from @haxpor in real-time then retweet it.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

twitterbot_refrt

This bot will apply condition to selected tweet from @haxpor in real-time then retweet it.

Setup

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 ~/.bashrc.

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

Take a look at @haxpor_refrt bot, it will retweet tweet from @haxpor if that tweet passed filtering rules to retweet.

License

MIT, Wasin Thonkaew