Skip to content
A node.JS application designed to utilize several sample APIs
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.
.gitignore
README.md
keys.js
liri.js
liribot.PNG
log.txt
package-lock.json
package.json
random.txt

README.md

!SIRI Bot 💻🎤🎧🎬💾

LIRI_Bot Pic

LIRI Bot is a Node.JS Language Input Robot Interface that takes language commands ads runs a function. This current robot can do a myriad of things and had four commands to start: spotify-this, movie-this, concert-this, and do-what-it-says. You will find demo videos below breaking down the details of what they do. Please feel free to give it a try!

APIs and NPM Packages used in the creation of this site:

Spotify -- https://www.spotify.com/

Band-In-Town -- https://www.bandsintown.com/en

OMDB -- http://www.omdbapi.com/

Moment.JS -- https://www.npmjs.com/package/moment

Inquirer.JS -- https://www.npmjs.com/package/inquirer

fs -- https://www.npmjs.com/package/fs

Intro

Intro Video

click image for video

Spotify-This

The spotify-this command combined with a song track will query Spotify's API for all related songs up to 20 and return them for your viewing.

Default (run blank): The Sign

Spotify This Video

click image for video

Movie-This

The movie-this command combined with a movie choice will spit back a lot of popular information relevant to your chosen movie.

Default (run blank): Mr. Nobody

Movie This Video

click image for video

Concert-This

When running concert-this along with a band or performer of choice you will receive back all the results of their upcoming venues. The time is formatted using Moment.JS.

Default (run blank): Shinedown

Concert This Video

click image for video

Do-What-It-Says

Running do-what-it-says will take in a file names random.txt and runn the command kept inside. for this demo the contents of the random.txt file are: spotify-this-song,"I Want it That Way"

Do What It Says Video

click image for video

File Write to Create a Log File

In order to create a log file we are using the fs npm package to writeData(); to a text file called log.txt. All data that is run and displayed in the terminal is also reflected in the file. It also does this without overwriting the file. As you can see in the uploaded log file it took some formatting attempts to get the data to read properly.

File Write Video

click image for video
You can’t perform that action at this time.