This commit is contained in:
Dragon Fire
2020-01-16 19:00:55 -05:00
parent 1ac744141f
commit b2850f83fd
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class HttpDuckCommand extends Command {
async run(msg, { code }) {
try {
const { body, headers } = await request.get(`https://random-d.uk/api/http/${code}.jpg`);
const { body } = await request.get(`https://random-d.uk/api/http/${code}.jpg`);
return msg.say({ files: [{ attachment: body, name: `${code}.jpg` }] });
} catch (err) {
if (err.status === 404) return msg.say('Could not find any results.');