From 30cf740652671afb572b8b92fc372d58a46dd45a Mon Sep 17 00:00:00 2001 From: Damian Esteban Date: Wed, 6 Jan 2016 23:12:47 -0500 Subject: [PATCH 1/2] changed smiley --- sentiment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sentiment.js b/sentiment.js index 81c1267..bfbfa21 100644 --- a/sentiment.js +++ b/sentiment.js @@ -10,7 +10,7 @@ function sentimentToSmiley(sentiment) { if(score === 0) { return ':-|' } if(score < 0) { if(score > -2) { return ':-(' } - return ':`(' + return ':((((' } if(score < 2) { return ':-)' } @@ -25,4 +25,4 @@ request('https://www.twitter.com/dhh', function(err, response) { var results = sentiment(text); console.log(sentimentToSmiley(results), '-', text.replace(/\n/g, ' ')); }); -}); \ No newline at end of file +}); From 145e25d2192386db3b8e94d70e0b92601f3a3d5c Mon Sep 17 00:00:00 2001 From: Damian Esteban Date: Wed, 6 Jan 2016 23:15:06 -0500 Subject: [PATCH 2/2] smiley test --- sentiment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentiment.js b/sentiment.js index bfbfa21..9cc6bf6 100644 --- a/sentiment.js +++ b/sentiment.js @@ -10,7 +10,7 @@ function sentimentToSmiley(sentiment) { if(score === 0) { return ':-|' } if(score < 0) { if(score > -2) { return ':-(' } - return ':((((' + return ':((((<>' } if(score < 2) { return ':-)' }