From 628b7bc378144a03c03755018f56634909567591 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 2 Jun 2014 02:13:04 +0000 Subject: [PATCH] 140 chars in synopsis --- modules/rt/rt.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/rt/rt.js b/modules/rt/rt.js index ca70c70..0b9b2eb 100644 --- a/modules/rt/rt.js +++ b/modules/rt/rt.js @@ -24,6 +24,7 @@ var rt = function(dbot) { if(_.has(m, 'directors')) mString += ' [Director: ' + m.directors[0] + ']'; if(_.has(m, 'genres')) mString += ' [Genre: ' + m.genres[0] + ']'; if(_.has(m, 'synopsis') && m.synopsis != '') { + if(m.synopsis.length > 140) m.synopsis = m.synopsis.substring(0, 140) + '...'; mString += ' [Synopsis: ' + m.synopsis + ']'; } else if(_.has(m, 'critics_consensus')) { mString += ' [Review: ' + m.critics_consensus + ']';