mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +02:00
Fix Lint
This commit is contained in:
@@ -29,7 +29,7 @@ module.exports = class HttpDuckCommand extends Command {
|
|||||||
|
|
||||||
async run(msg, { code }) {
|
async run(msg, { code }) {
|
||||||
try {
|
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` }] });
|
return msg.say({ files: [{ attachment: body, name: `${code}.jpg` }] });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.status === 404) return msg.say('Could not find any results.');
|
if (err.status === 404) return msg.say('Could not find any results.');
|
||||||
|
|||||||
Reference in New Issue
Block a user