i-am-worthless
Advanced tools
Comparing version 192.168.2 to 192.168.3
11
index.js
@@ -11,2 +11,9 @@ #!/usr/bin/env node | ||
let endearments = [ | ||
'turd gurgler', | ||
'absolute disgrace', | ||
'pro skub waste man', | ||
'wotsit dust covered animal' | ||
] | ||
request('http://api.adviceslip.com/advice', function(err, response, body) { | ||
@@ -25,4 +32,6 @@ if (err) { | ||
console.log(res.slip.advice) | ||
let advice = res.slip.advice.replace(/\.$/, '') | ||
console.log(advice + ', you ' + endearments[Math.floor(Math.random()*endearments.length)]) | ||
// Now go back to your worthless life | ||
}) |
{ | ||
"name": "i-am-worthless", | ||
"version": "192.168.2", | ||
"version": "192.168.3", | ||
"repository": "JakeElder/i-am-worthless", | ||
@@ -5,0 +5,0 @@ "description": "Attempts to stop you from being so god damn hopeless", |
@@ -5,4 +5,14 @@ # i-am-worthless | ||
If you can JUST ABOUT manage it, install by typing `npm install -g i-am-worthless` | ||
## INSTALL | ||
Then issue the command `i-am-worthless` to receive a random piece of advice that may one day stop you from being such a failure | ||
If you can JUST ABOUT manage it, install by typing | ||
``` | ||
npm install -g i-am-worthless` | ||
``` | ||
## USE IT | ||
Just issue the command `i-am-worthless` to receive a random piece of advice that may one day stop you from being such a failure | ||
--- | ||
Uses http://api.adviceslip.com/advice |
11045
29
18