Giter Site home page Giter Site logo

doggobotto's Introduction

DoggoBotto

Hello! For those that don't know, DoggoBotto is a Twitter bot that posts both user submitted dog photos and non-user submitted dog photos. The simple goal of DoggoBotto is to make it's followers smile every day!

You can find the twitter page HERE and the official website HERE.

DoggoBotto also has a FE and BE repository:

Setup

To get this bot up and running, it's quite simple.

  • Clone this repository
  • Run npm install to install all necessary dependencies
  • Create an .env that holds your Twitter consumer and access keys
  • Run npm start. It should default to localhost:5000

Technologies Used

  • Express is the Node framework used
  • Twit is the Twitter API Client for Node, read more here
  • I used Cron-Job's to schedule the execution of certain scripts, read more here
  • TheDogsAPI used for fetching non-user submitted dog photos
  • Public quote API that can be found here

Routes

Description Route Method
Post non-user submitted Photos /post GET
Post user submitted photos (if they exist) /doggoOTD GET
Search and follow users /follow GET
Unfollows users /unfollow GET

How are the routes used?

Each route is tied to a function that will execute when their endpoint is hit. For example, if I wanted DoggoBotto to post a picture of one random dog right now, I would perform a GET on the '/post' endpoint. I set each of these endpoints to be hit at specified times using Cron-Job's. For more information on Cron-Job's, visit here.

Diagram of how DoggoBotto works!

A flowchart that gives you a rough rough idea:

doggobotto diagram

doggobotto's People

Contributors

coryortega avatar

Stargazers

santy avatar

Watchers

James Cloos avatar  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.