To use the application, you will need to have API credentials for Spotify, Bands In Town, and OMDB.
npm install
and press .env
.SPOTIFY_ID=<spotify_client_id>
SPOTIFY_SECRET=<spotify_client_secret>
OMDB_KEY=<omdb_api_key>
BITS_APP_ID=<bands_in_town_app_id>
There should be no spaces around the equal sign, and the values should not be surrounded by quotes.
LIRI Bot provides the capability to collect information from various sources and display the results on the screen. The following commands are implemented:
To use this command, it’s called with liri concert-this "Michael McDonald"
This will issue a request to the Bands in Town API and return any future
performances for the specified artist. In particular, it returns the
following information:
If you call the command without supplying an artist name, you will be presented
with a help screen indicating how to use the liri
application, and what you
need to provide to execute the command.
The image below shows an example of the results of executing this command.
The spotify-this-song
command will look up the provided song name using the
Spotify API, and return information about the song.
If you do not provide a song name with the command, the application will use a predefined default.
This command returns the following information about a song:
The image below shows an example of the results of executing this command with and without a song name.
The movie-this
command will look up the provided movie title using the
Online Movie Database API, and return information about the movie.
If you do not provide a movie title with the command, the application will use a predefined default.
This command returns the following information about a movie title:
The images below show examples of the results of executing this command with and without a movie title.
The do-what-it-says
command will read the commands.csv file and execute the
commands in the file.
The commands.csv file is in the format of:
command,parameter
This file does not contain a header line, and expects to have a command, and its input, as one line per command.
The image below shows an example of the results of executing this command.