Skip to content
No description, website, or topics provided.
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

Project Overview

LIRI Bot was created as a homework assignment for the UNC Chapel Hill Full Stack Web Development Bootcamp, Nov. 2018 Cohort. LIRI Bot is ran from terminal.

You can watch a video of LIRI Bot in action here: [Link] (https://drive.google.com/file/d/19hlAufCrm2TLe1ddyGa2lF0z4f29coMP/view?usp=sharing)

Technologies / Proficiencies

Skills/technologies incorporated into this assignment:

  • Javascript
  • Node.js
  • API Calls
  • Node Package Manager
  • Mad ASCI Layout Skills

Node packages incorporated into this assignment:

Features

LIRI Bot will return data to the user based on three inputs:

concert-this

The concert-this function of LIRI Bot will take the input of a band name, and query the band name against the Bands In Town API. If the band will be performing in the near future, information for those events will be printed to the screen.

Input format: node liri concert-this <band name>

Example: node liri concert-this queens of the stone age

Image of concert-this

spotify-this-song

The spotify-this-song function of LIRI Bot will take the input of a song name, and query the song name against the Spotify API. If there are matches for the song name, information about the first match in the API's returned JSON object will be printed to the screen.

Input format: node liri spotify-this-song <song name>

Example: node liri spotify-this-song paranoid android

Image of concert-this

movie-this

The movie-this function of LIRI Bot will take the input of a movie name, and query the movie name against the OMDB API. If there is a match for the movie name, information about that movie will be printed to the screen.

Input format: node liri movie-this <movie name>

Example: node liri movie-this death to smoochy

Image of concert-this

do-what-it-says

The do-what-it-says function is an additional way to trigger the movie-this, spotify-this-song, or concert-this function based on the contents of random.txt. Within random.txt, you can include a single function type and a search string in the following format:

spotify-this-song,"stairway to heaven"

To trigger this function, type the following in console:

node liri do-what-it-says

Image of concert-this

LIRI Bot Setup

LIRI Bot requires node.js in order to run. Package.json is included for ease of installation for NPM packages.

LIRI Bot uses the file .env that is not included in this repository, and should be placed in the same folder with liri.js. This file should contain your Spotify Client ID and Client Secret.

.env should be formatted as such:

SPOTIFY_ID=123456789123456789123456789
SPOTIFY_SECRET=123456789123456789123456789
You can’t perform that action at this time.