Skip to content

asadadams/TwitBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwitBot

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.

Packages

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.

Quotes API

https://github.com/skolakoda/programming-quotes-api

Environment Variables

  • consumer_key
  • consumer_secret
  • access_token
  • access_token_secret

To get started

  • Clone or download repository
    git clone https://github.com/asadadams/TwitBot
    
  • Install packages
    npm install    
    

Useful Scripts

Script Description
npm start Starts Bot

Usage

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)

Me

Want to say hi? Will be happy to hear from you

Releases

No releases published

Packages

No packages published