TwitBot is a twitter bot built in node. This bot tweets a programmer's quote every hour, tweet to a user if followed and replies to tweet.
isCool is not used in this bot. First planned for the bot to tweet some words and wanted to use this package to make sure these words were not offensive.
https://github.com/skolakoda/programming-quotes-api
- consumer_key
- consumer_secret
- access_token
- access_token_secret
- Clone or download repository
git clone https://github.com/asadadams/TwitBot
- Install packages
npm install
Script | Description |
---|---|
npm start | Starts Bot |
To start development server
- Start project
node index.js
//When someone replies to bot's tweet
stream.on('tweet',function(event){
.....
if(replyto == TWITTERACCOUNT){
makeTweet(`@${from} thanks for tweeting me.`);
}
});
- TWITTERACCOUNT should be the username (eg. asadadams)
Want to say hi? Will be happy to hear from you