mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix Bugs
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "30.7.2",
|
||||
"version": "30.7.3",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user