Skip to content

Commit

Permalink
minor post-final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxySH committed Apr 20, 2020
1 parent cf949db commit b87de55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/8ball.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Generates the magic 8ball response
*/
function doMagic8BallVoodoo() {
var rand = ['Yes', 'No', 'Why try?', 'Maybe', 'Never'];
var rand = ['Yes', 'No'];
return rand[Math.floor(Math.random() * rand.length)];
}

Expand Down
3 changes: 2 additions & 1 deletion commands/sentiment.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
const config = require('../auth.json');
const NaturalLanguageUnderstandingV1 = require('ibm-watson/natural-language-understanding/v1');
const { IamAuthenticator } = require('ibm-watson/auth');

const naturalLanguageUnderstanding = new NaturalLanguageUnderstandingV1({
version: '2019-07-12',
authenticator: new IamAuthenticator({
apikey: '***REMOVED***',
apikey: config.NLPAPIKEY,
}),
url: 'https://api.us-south.natural-language-understanding.watson.cloud.ibm.com/instances/c3583068-a860-4dea-b3b3-d417250e51bc',
});
Expand Down

0 comments on commit b87de55

Please sign in to comment.