LIRI (Language Interpretation and Recognition Interface)

LIRI is a command line Node application that takes in parameters (via command line arguments or file input) to display tweets, songs from Spotify, and movie information from OMDB.
View on GithubLiri on NPMLiri on NPMLiri on NPM

Table of Contents


LIRI Commands

node ./liri [movie, spotify, tweets, do] <value> (--say)

movie"movie title"–saynode liri 'Blade Runner 2049' --say
spotify"song title"-node liri 'Thriller'
tweetstwitter handle-node liri 'jeffreylowy'
do-what-it-says--node liri do-what-it-says

You can also run via npm scripts.

npm run [movie, spotify, tweets, do] <value>

--say currently does not work when run via npm script.

API Keys

Rather than include a keys.js file, I used the dotenv package to create environment variables. The .env file is the first file required in ./liri.js, which stores environment-specific variables in the form of NAME=VALUE.

For more information, visit the NPM page for the dotenv package.

Make LIRI speak

If Node is running on macOS/Darwin, you can make LIRI read movie plot information by passing the `--say` flag after the movie's title. This only works when the full command is entered.

Example: node ./liri movie 'Blade Runner 2049' --say

Install and run via NPM

This project was uploaded to NPM under the package name liri-cli. Though I hope to get there, the package is not yet ready to be installed globally.

Install: npm i liri-cli

--say currently does not work when run via npm script.