mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
Fix Bugs
This commit is contained in:
@@ -47,7 +47,7 @@ module.exports = class MovieCommand extends Command {
|
|||||||
.addField('❯ Release Date',
|
.addField('❯ Release Date',
|
||||||
body.release_date, true)
|
body.release_date, true)
|
||||||
.addField('❯ Genres',
|
.addField('❯ Genres',
|
||||||
body.genres.map(genre => genre.name).join(', '))
|
body.genres.length ? body.genres.map(genre => genre.name).join(', ') : 'N/A')
|
||||||
.addField('❯ Production Companies',
|
.addField('❯ Production Companies',
|
||||||
body.production_companies.length ? body.production_companies.map(company => company.name).join(', ') : 'N/A');
|
body.production_companies.length ? body.production_companies.map(company => company.name).join(', ') : 'N/A');
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ module.exports = class TVShowCommand extends Command {
|
|||||||
.addField('❯ Episodes',
|
.addField('❯ Episodes',
|
||||||
body.number_of_episodes, true)
|
body.number_of_episodes, true)
|
||||||
.addField('❯ Genres',
|
.addField('❯ Genres',
|
||||||
body.genres.map(genre => genre.name).join(', '))
|
body.genres.length ? body.genres.map(genre => genre.name).join(', ') : 'N/A')
|
||||||
.addField('❯ Production Companies',
|
.addField('❯ Production Companies',
|
||||||
body.production_companies.length ? body.production_companies.map(company => company.name).join(', ') : 'N/A');
|
body.production_companies.length ? body.production_companies.map(company => company.name).join(', ') : 'N/A');
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ module.exports = class WikiaCommand extends Command {
|
|||||||
.setURL(search.body.items[0].url)
|
.setURL(search.body.items[0].url)
|
||||||
.setAuthor('Wikia', 'https://i.imgur.com/WzXWJka.png')
|
.setAuthor('Wikia', 'https://i.imgur.com/WzXWJka.png')
|
||||||
.setDescription(body.sections[0].content.map(i => i.text).join('\n\n').substr(0, 2048))
|
.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);
|
return msg.embed(embed);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.say('No Results or Invalid Wiki.');
|
return msg.say('No Results or Invalid Wiki.');
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "30.7.2",
|
"version": "30.7.3",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user