glados-said
v1.1.3
Published
CLI that enables quotes randomly generated quotes by GlaDOS from the video game Portal & Portal 2
Downloads
8
Readme
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.
(Scaled up GLaDOS Cow file was used).
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:
npm install -g glados-said
Manual Installation
To Install this tool:
git clone https://github.com/GreysonStalcup/glados-said.git
Once cloned, change directories into the correct directory.
cd glados-said
Once the repo is cloned, run the following command to install it globally.
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. 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.
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:
//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.")