mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Fix
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = class NASACommand extends Command {
|
|||||||
if (!images.length) return msg.say('Could not find any results.');
|
if (!images.length) return msg.say('Could not find any results.');
|
||||||
const data = images[Math.floor(Math.random() * images.length)];
|
const data = images[Math.floor(Math.random() * images.length)];
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setTitle(data.data[0].title)
|
.setTitle(shorten(data.data[0].title, 256))
|
||||||
.setDescription(shorten(this.cleanHTML(data.data[0].description)))
|
.setDescription(shorten(this.cleanHTML(data.data[0].description)))
|
||||||
.setColor(0x2E528E)
|
.setColor(0x2E528E)
|
||||||
.setAuthor('NASA', 'https://i.imgur.com/Wh8jY9c.png', 'https://www.nasa.gov/multimedia/imagegallery/index.html')
|
.setAuthor('NASA', 'https://i.imgur.com/Wh8jY9c.png', 'https://www.nasa.gov/multimedia/imagegallery/index.html')
|
||||||
|
|||||||
Reference in New Issue
Block a user