This commit is contained in:
Daniel Odendahl Jr
2017-08-21 10:45:43 +00:00
parent be71d99f09
commit cb294acc8e
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ module.exports = class MovieCommand extends Command {
.addField(' Release Date',
body.release_date, true)
.addField(' Genres',
body.genres.map(genre => genre.name).join(', '))
body.genres.length ? body.genres.map(genre => genre.name).join(', ') : 'N/A')
.addField(' Production Companies',
body.production_companies.length ? body.production_companies.map(company => company.name).join(', ') : 'N/A');
return msg.embed(embed);
+1 -1
View File
@@ -51,7 +51,7 @@ module.exports = class TVShowCommand extends Command {
.addField(' Episodes',
body.number_of_episodes, true)
.addField(' Genres',
body.genres.map(genre => genre.name).join(', '))
body.genres.length ? body.genres.map(genre => genre.name).join(', ') : 'N/A')
.addField(' Production Companies',
body.production_companies.length ? body.production_companies.map(company => company.name).join(', ') : 'N/A');
return msg.embed(embed);
+1 -1
View File
@@ -45,7 +45,7 @@ module.exports = class WikiaCommand extends Command {
.setURL(search.body.items[0].url)
.setAuthor('Wikia', 'https://i.imgur.com/WzXWJka.png')
.setDescription(body.sections[0].content.map(i => i.text).join('\n\n').substr(0, 2048))
.setThumbnail(body.sections[0].images[0] ? body.sections[0].images[0].src : null);
.setThumbnail(body.sections[0].images.length ? body.sections[0].images[0].src : null);
return msg.embed(embed);
} catch (err) {
return msg.say('No Results or Invalid Wiki.');
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "30.7.2",
"version": "30.7.3",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {