UNPKG

glados-said

Version:

CLI that enables quotes randomly generated quotes by GlaDOS from the video game Portal & Portal 2

90 lines (52 loc) 2.3 kB
# GLaDOS Said ## Description GLaDOS said is a CLI tool that will return a randomly generated quote said by GLaDOS in the video game Portal (AND Portal 2). This also can give your projects access to a random GLaDOS quote. ### Use Case You can use GLaDOS said in combination with Cowsay to get some interesting results. Simply adding the line `glados-said | cowsay` to your `~/.zshrc` file (or whatever shell you're using) will a new quote every time you open your terminal. ![pixel art glados image](assets/image3.png) --- ![pixel art glados image 2](assets/image2.png) (Scaled up GLaDOS Cow file was used). ![sample glados image](assets/image.png) ### Cowfile To use the pixel art cowfile made by me, you can find it in the assets directory. --- # Installation ## Using NPM To install this tool with `NPM` run: ```sh npm install -g glados-said ``` ## Manual Installation To Install this tool: ```sh git clone https://github.com/GreysonStalcup/glados-said.git ``` Once cloned, change directories into the correct directory. ```sh cd glados-said ``` Once the repo is cloned, run the following command to install it _globally_. ```sh npm install -g ``` # Usage ## Using in CLI Globally This tool was **initially** written purely for usage with Cowsay via the CLI. Using this tool is pretty straight forward. After installed globally, simply run the command `glados-said`. For added fun, you can pass that to [cowsay](https://en.wikipedia.org/wiki/Cowsay). Additionally, you can add a GLaDOS cowfile to your cowfiles directory to have GLaDOS say the quotes! A GLaDOS Pixel art cowfile is provided in the [assets directory](assets/glados-pixel-small.cow). - [Alternative Large GLaDOS Cowfile](https://github.com/paulkaefer/cowsay-files/blob/main/examples.md#glados-colorcow) ## Using in your own projects To gain access to GLaDOS quotes in your own projects, run `npm i glados-said` in the project directory. Once installed, usage is simple. Example after installing: ```js //external_script.js import { Glados } from "glados-said"; console.log(Glados.GetQuote()); ``` # TODOS - [x] Scrape quotes from GLaDOS quotes page. - [x] Fix module exports to be easier to use from external projects. - [ ] Remove duplicate quotes - [ ] Take out useless quotes (i.e., "yeah.")