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 is a command line node.js app that takes in parameters and gives you back data.
Download the code to your machine from https://github.com/angellugo/liri-node-app.git
Make a .env file with the following:
# Spotify API keys
SPOTIFY_ID=xxxxxx
SPOTIFY_SECRET=xxxxxx
# Twitter API keys
TWITTER_CONSUMER_KEY=xxxxxx
TWITTER_CONSUMER_SECRET=xxxxxx
TWITTER_ACCESS_TOKEN_KEY=xxxxxx-xxxxxx
TWITTER_ACCESS_TOKEN_SECRET=xxxxxx
# OMDb API keys
OMDb_API_KEY=xxxxxx
Replace the xxxxxx
with your keys.
Install the necessary packages by running npm install
node liri.js my-tweets '<username>'
This will show the username’s last 20 tweets and when they were created at in the terminal/bash window.
If no username is provided the program will default to nodejs as a username.
node liri.js spotify-this-song '<song name here>'
This will show the following information about the song in the 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 the program will default to “The Sign” by Ace of Base.
node liri.js movie-this '<movie name here>'
This will output the following information to the 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.
If the user doesn’t type a movie in, the program will output data for the movie ‘Mr. Nobody.’
node liri.js do-what-it-says
When you command LIRI to do-what-it-says, LIRI will take the text inside of random.txt and then use it to call LIRI’s commands.