Coder Social home page Coder Social logo

liri-bot's Introduction

Homework #10 Liri-Bot

For this assignment Liri-Bot is used like SIRI but without voice command. LIRI will be a command line node app that takes in parameters and gives you back data.

Liri-Bot uses the following commands:

  • spotify-this-song
  • movie-this
  • concert-this
  • do-what-it-says

Technologies used:

  • Node.js
  • javaScript

NPM Packages:

  • twitter - an asynchronous client library for the Twitter REST and Streaming API's.
  • spotify - A simple to use API library for the Spotify REST API.
  • request - Request is designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default.
  • dotenv - Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env

To use Liri-Bot:

  • node liri.js concert-this <artist/band name here>

    • This will search the Bands in Town Artist Events API for an artist and render the following information about each event to the terminal:

      • Name of the venue

      • Venue location

      • Date of the Event (use moment to format this as "MM/DD/YYYY")

        ** Example: Artist Pink was seleected for this example

      concertThis

  • node liri.js spotify-this-song ''

    • This will show the following information about the song in your terminal/bash window.
    • If there is not song entered then the application will return "The Sign" by Ace of Base
      • Artist(s)
      • The song's name
      • A preview link of the song from Spotify
      • The album that the song is

    **Example: In this example the song name was left blank. App displayed the default song "The Sign"

    songBlank

    **Example: In this example the song name is "Old Town Road"

    song

  • node liri.js movie-this ''

    • This will output the following information to your terminal/bash window:

      • Title of the movie.
      • Year the movie came out.
      • IMDB Rating of the movie.
      • Rotten Tomatoes Rating of the movie.
      • Country where the movie was produced.
      • Language of the movie.
      • Plot of the movie.
      • Actors in the movie.

      **Example:

      movie

  • node liri.js do-what-it-says

    • Using the fs Node package, LIRI will take the text inside of random.txt and then use it to call one of LIRI's commands.

    • It should run spotify-this-song for "I Want it That Way," as follows the text in random.txt.

    • Edit the text in random.txt to test out the feature for movie-this and concert-this.

      **Example:

      doWhat

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.