cakebatterandsprinkles / LIRIBOT

A slightly intelligent bot made with node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LIRIBOT

:octocat: An intelligent bot made with node.js.

LIRI is a Language Interpretation and Recognition Interface, which is a command line node app that takes in parameters and gives you back data.

Liri can give you information about:

  • approaching concert dates and places of the groups you like.
  • the movies you like.
  • songs you like.

How It Works

Applications uses 3 different API's and brings the user specific data:

  1. For the information about movies it uses OMDP API.
  2. For the information about songs, it uses Spotify API. For this function to work, the user himself/herself must have an API key of their own.
  3. For the information about concerts, it uses Bands in Town API.

Usage

  1. node liri.js concert-this <artist/band name here>

    ➰ This will render the following information about each event to the terminal:

     * Name of the venue
     * Venue location
     * Date of the Event
    

    Here is the demo

  2. node liri.js spotify-this-song '<song name here>'

    ➰ This will show the following information about the song in your terminal/bash window

     * Artist(s)
     * The song's name
     * A preview link of the song from Spotify
     * The album that the song is from
    

    Here is the demo

    • If no song is provided then the program will default to "The Sign" by Ace of Base.

    Here is the demo

  3. node liri.js movie-this '<movie name here>'

    ➰ This will output the following information to your terminal/bash window:

     * Title of the movie.
     * Year the movie came out.
     * IMDB Rating of the movie.
     * Rotten Tomatoes Rating of the movie.
     * Country where the movie was produced.
     * Language of the movie.
     * Plot of the movie.
     * Actors in the movie.
    

    Here is the demo

    • If you don't type a movie in, the program will output data for the movie 'Mr. Nobody.'

    Here is the demo

  4. node liri.js do-what-it-says

    ➰ This will prompt you about the action you want to take, and your search query.

    • It will render the answers depending on the action you take.

      Here is the demo-1

      Here is the demo-2

      Here is the demo-3

  5. node liri.js last-search

    ➰ The program automatically creates a random.txt file and keeps your last function and search parameter inside.

    • last-search will bring you the last function and search parameter.

      Here is the demo

    • ‼️ Warning: The program also creates a log.txt file and logs all of your search parameters.

    Here is the demo

  6. node liri.js search-log

    ➰ This command prints the search history from log.txt file in your console.

    Here is the demo

  7. node liri.js clear-data

    ➰ When user is finished using the program, they can delete the log.txt and random.txt files by using this command.

    • ‼️ Warning: Be careful with this command! When it's deleted, you can't get your search information back.

    Here is the demo

About

A slightly intelligent bot made with node.js


Languages

Language:JavaScript 100.0%