GithubHelp home page GithubHelp logo

devfitbot's Introduction

NODE MODULES IS EXCLUDED FROM THIS!!! Must add node modules.

Reweet Bot

Retweets the latest tweet using the "#DevFit" hashtag. It attempts to retweet once per hour. You can always change the # to fit your needs.

Install twit

Install twit while in the ./bot/ folder. The library that lets us talk to Twitter.

npm i twit

Connecting to Twitter

Create a Twitter App on Twitter Developers : https://apps.twitter.com/app/new . Next you'll see a screen with a "Details" tab. Setup the App and "Application Type", choose "Read and Write".

Create an empty config.js file in the ./bot folder

Then go to the Keys and Access Tokens tab, you will need this data to setup our config.js as shown below.

module.exports = {
    consumer_key:         'API key',
    consumer_secret:      'API secret key',
    access_token:         'Access token',
    access_token_secret:  'Access token secret'
  }

In between those quotes, instead of 'key', paste the appropriate info from the Details page.

Run the app

Now type the following in the command line while in the ./bot folder directory

node retweetbot.js

Celebrate

Expect as success message in your console!

devfitbot's People

Contributors

thedthompsondev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.