mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
Remove ... from Search Commands
This commit is contained in:
@@ -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:**',
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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:**',
|
||||
|
||||
Reference in New Issue
Block a user