mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Fix lint
This commit is contained in:
@@ -20,13 +20,9 @@ module.exports = class FrogCommand extends Command {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(msg) {
|
run(msg) {
|
||||||
try {
|
const chosen = Math.floor(Math.random() * 54) + 1;
|
||||||
const chosen = Math.floor(Math.random() * 54) + 1;
|
const str = chosen.toString().padStart(4, '0');
|
||||||
const str = chosen.toString().padStart(4, '0');
|
return msg.say({ files: [`http://www.allaboutfrogs.org/funstuff/random/${str}.jpg`] });
|
||||||
return msg.say({ files: [`http://www.allaboutfrogs.org/funstuff/random/${str}.jpg`] });
|
|
||||||
} catch (err) {
|
|
||||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user