From 8f98e31f11db360a5978cc11d0530a9051fc93a4 Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Thu, 16 Mar 2017 18:57:55 -0400 Subject: [PATCH] Remove ... from Search Commands --- commands/search/imdb.js | 2 +- commands/search/urban.js | 4 ++-- commands/search/wattpad.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/search/imdb.js b/commands/search/imdb.js index 27a7a7b6..6d00fd9f 100644 --- a/commands/search/imdb.js +++ b/commands/search/imdb.js @@ -32,7 +32,7 @@ class IMDBCommand extends commando.Command { .setAuthor('IMDB', 'http://static.wixstatic.com/media/c65cbf_31901b544fe24f1890134553bf40c8be.png') .setURL(movie.imdburl) .setTitle(movie.title + ' (' + movie.rating + ' Score)') - .setDescription(movie.plot.substr(0, 1500) + "... [Read the Rest Here!](" + movie.imdburl + ")") + .setDescription(movie.plot.substr(0, 1500) + " [Read the Rest Here!](" + movie.imdburl + ")") .addField('**Genres:**', movie.genres) .addField('**Year:**', diff --git a/commands/search/urban.js b/commands/search/urban.js index 37201b9d..ed31b9bb 100644 --- a/commands/search/urban.js +++ b/commands/search/urban.js @@ -31,7 +31,7 @@ class UrbanDictionary extends commando.Command { .setAuthor('Urban Dictionary', 'http://a1.mzstatic.com/eu/r30/Purple71/v4/66/54/68/6654683f-cacd-4a55-1784-f14257f77874/icon175x175.png') .setURL(json.permalink) .setTitle(json.word) - .setDescription(json.definition.substr(0, 1900) + '... [Read the Rest Here!](' + json.permalink + ')') + .setDescription(json.definition.substr(0, 1900) + ' [Read the Rest Here!](' + json.permalink + ')') .addField('**Example:**', json.example.substr(0, 1900)); message.channel.sendEmbed(embed).catch(console.error); @@ -41,7 +41,7 @@ class UrbanDictionary extends commando.Command { .setAuthor('Urban Dictionary', 'http://a1.mzstatic.com/eu/r30/Purple71/v4/66/54/68/6654683f-cacd-4a55-1784-f14257f77874/icon175x175.png') .setURL(json.permalink) .setTitle(json.word) - .setDescription(json.definition.substr(0, 1900) + '... [Read the Rest Here!](' + json.permalink + ')'); + .setDescription(json.definition.substr(0, 1900) + ' [Read the Rest Here!](' + json.permalink + ')'); message.channel.sendEmbed(embed).catch(console.error); } }); diff --git a/commands/search/wattpad.js b/commands/search/wattpad.js index f93367e3..f27b0f39 100644 --- a/commands/search/wattpad.js +++ b/commands/search/wattpad.js @@ -40,7 +40,7 @@ class WattpadCommand extends commando.Command { .setAuthor('Wattpad', 'http://www.selfpubtoolbox.com/wp-content/uploads/2015/05/a6044fd3a88acd5043860484db972ca6.png') .setURL(response.stories[0].url) .setTitle(response.stories[0].title) - .setDescription(response.stories[0].description.substr(0, 1500) + "... [Read the Rest Here!](" + response.stories[0].url + ")") + .setDescription(response.stories[0].description.substr(0, 1500) + " [Read the Rest Here!](" + response.stories[0].url + ")") .addField('**Author:**', response.stories[0].user, true) .addField('**Parts:**',