This commit is contained in:
Dragon Fire
2020-06-29 20:21:23 -04:00
parent 6a3bcdb58c
commit ec9d39d9ff
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = class CatCommand extends Command {
mime_types: 'jpg,png'
})
.set({ 'x-api-key': THECATAPI_KEY });
return msg.say({ files: [body.images[0].url] });
return msg.say({ files: [body[0].url] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}