https://github.com/outadoc/randomatic-twitter-node
Twitter bot that listens for mentions and tweets back a random tweet based on the previous tweets of the mentionner.
https://github.com/outadoc/randomatic-twitter-node
Last synced: 9 months ago
JSON representation
Twitter bot that listens for mentions and tweets back a random tweet based on the previous tweets of the mentionner.
- Host: GitHub
- URL: https://github.com/outadoc/randomatic-twitter-node
- Owner: outadoc
- Created: 2013-04-02T19:09:36.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-11-10T18:14:11.000Z (over 12 years ago)
- Last Synced: 2025-04-25T14:16:07.470Z (about 1 year ago)
- Language: JavaScript
- Size: 256 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#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](http://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:
``` json
{
"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