mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix Lint
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user