Skip to content
LIRI Bot - CLI which pulls Spotify, Bands in Town, and OMDb data
JavaScript
Branch: master
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.
images
.gitignore
README.md
keys.js
liri.js
package-lock.json
package.json
random.txt

README.md

LIRI Bot

LIRI Bot is a Command Line Interface or CLI which requests data from Spotify, Bands In Town, and the Online Movie Database and using their API to give user song, concert, or movie information.

How To Use

To run the LIRI Bot you must run the program liri.js in the command line of node and then a valid search function. You must always input node and liri.js as the first two arguments.

Example: "node liri.js spotify-this-song subterranean homesick blues"

If you don't put in any argument it will explain how to ask for help.

After each valid search the Song, Concert, or Movie information will be added to the bottom of a log.txt file. If you do not have a log.txt file it will create one.

Help

Type help as the third argument and the console will log information to inform or remind the user of acceptable arguments.

Search Spotify

To search for song information type:

"spotify-this-song" or "spotify"

as the third argument and the song name as the fourth argument. The Spotify API will provide you information about the song including: Artist, Album Name, and a link to listen on Spotify.

Example: "node liri.js spotify-this-song song name here"

A default search will happen if a song is not declared.

Search Bands In Town

To search for song information type:

"concert-this" or "bands" or "bandsintown"

as the third argument and the artist name as the fourth argument. The Bands In Town API will provide you information about upcoming concerts by the provided artist including: Venue, Location, and Time.

Example: "node liri.js concert-this artist name here"

A default search will happen if an artist is not declared.


Search OMDB

To search for movie information type:

"movie-this" or "movie" or "omdb"

as the third argument and the movie name as the fourth argument. The OMDb API will provide you information about coming up concerts by the provided artist including: Date of Release, IMDB and Rotten Tomatoes ratings, Country of Origin, Language, Plot Summary, Director, and actors.

Example: "node liri.js movie-this movie name here"

A default search will happen if a movie is not declared.

Surprise Search

To do a surprise or random search type:

"do-what-it-says" or "surprise"

as the third argument and either spotify, bands, or omdb as the fourth argument for a random search which reads information from the random.txt file.

If a fourth argument is not listed it will provide random searches for all three types.

Install This Program

Clone this repository.

You must create API Keys from Spotify, Bands In Town, and OMDb.

Create a .env file in this format with your API Keys instead of where it says API Key. Spotify requires an ID key and a secret Key.

Open up your folder container the LIRI Bot files in the command line. 'CTRL + `

Type 'npm install'

And then your file should be good to go. You can now type your arguments in to the command line.


Made by Adam Cromer, 2018.

You can’t perform that action at this time.