LIRI is like iPhone's SIRI. However, while SIRI is a Speech Interpretation and Recognition Interface, LIRI is a Language Interpretation and Recognition Interface. LIRI will be a command line node app that takes in parameters and gives you back data.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
javascript
node_modules
.gitnore
README.md
liri.js
log.txt
package.json
random.txt

README.md

Liri Node Bot

LIRI is like iPhone's SIRI. However, while SIRI is a Speech Interpretation and Recognition Interface, LIRI is a Language Interpretation and Recognition Interface. LIRI will be a command line node app that takes in parameters and gives you back data.

Before You Begin

  1. LIRI will display your latest tweets. As we do not want to display your personal account, or its keys, please make an alias account and add a few tweets to it!

  2. Make a new GitHub repository called liri-node-app and clone it to your computer.

  3. To retrieve the data that will power this app, you'll need to send requests to the Twitter, Spotify and OMDB APIs. You'll find these Node packages crucial for your assignment.

Retrieving Keys

  1. Get your Twitter API keys by following these steps:

    • Step One: Visit https://apps.twitter.com/app/new

    • Step Two: Fill out the form with dummy data. Type http://google.com in the Website input. Don't fill out the Callback URL input. Then submit the form.

    • Step Three: On the next screen, click the Keys and Access Tokens tab to get your consume key and secret.

    • Copy and paste them where the <input here> tags are inside your keys.js file.

    • Step Four: At the bottom of the page, click the Create my access token button to get your access token key and secret.

    • Copy the access token key and secret displayed at the bottom of the next screen. Paste them where the <input here> tags are inside your keys.js file.

  2. Like the Twitter API, the Spotify API requires you sign up as a developer to generate the necessary credentials. You can follow these steps in order to generate a client id and client secret:

    1. You'll use the request package to retrieve data from the OMDB API. The OMDB API requires an API key. You may use 40e9cece.

What Each Command Should Do

  1. node liri.js my-tweets

    • This will show your last 20 tweets and when they were created at in your terminal/bash window.
  2. node liri.js spotify-this-song '<song name here>'

    • This will show the following information about the song in your terminal/bash window

      • Artist(s)

      • The song's name

      • A preview link of the song from Spotify

      • The album that the song is from

    • If no song is provided then your program will default to "The Sign" by Ace of Base.

    • You will utilize the node-spotify-api package in order to retrieve song information from the Spotify API.

    • Like the Twitter API, the Spotify API requires you sign up as a developer to generate the necessary credentials. You can follow these steps in order to generate a client id and client secret:

  3. node liri.js movie-this '<movie name here>'

    • 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.
        * Country where the movie was produced.
        * Language of the movie.
        * Plot of the movie.
        * Actors in the movie.
        * Rotten Tomatoes URL.
      
  4. 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.

    • Feel free to change the text in that document to test out the feature for other commands.

Built With

Authors