Skip to content

outadoc/randomatic-twitter-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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 dev.twitter.com, 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

About

Twitter bot that listens for mentions and tweets back a random tweet based on the previous tweets of the mentionner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published