Twitter bot that listens for mentions and tweets back a random tweet based on the previous tweets of the mentionner.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

#What is it? Just a Twitter bot that listens for what you're saying. It will answer every tweet mentionning it something random it got from the previous tweets of the mentionner.

#Configure Begin by opening a new account for the bot on Twitter. Then, create an application for this account on, and get the API keys.

Setup in config.json. Replace the Twitter API keys of the bot you created on Twitter in the file. Like this:

	"keys": {
		"consumer_key":        "YOUR_CONSUMER_TOKEN",
		"consumer_secret":     "YOUR_CONSUMER_SECRET",
		"access_token_key":    "YOUR_ACCESS_TOKEN_KEY",
		"access_token_secret": "YOUR_ACCESS_TOKEN_SECRET"
	"blacklist": ["HeureFrancaise"]

As you can see, you can also specify a blacklist which will prevent the bot from replying to certain users: this can be particularly useful if you don't want the bot to be stuck in a loop with another bot.

#Usage Install Node.js, and use it to run the bot. Like this:

node bot.js