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:
@@ -20,13 +20,9 @@ module.exports = class FrogCommand extends Command {
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg) {
|
||||
try {
|
||||
const chosen = Math.floor(Math.random() * 54) + 1;
|
||||
const str = chosen.toString().padStart(4, '0');
|
||||
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!`);
|
||||
}
|
||||
run(msg) {
|
||||
const chosen = Math.floor(Math.random() * 54) + 1;
|
||||
const str = chosen.toString().padStart(4, '0');
|
||||
return msg.say({ files: [`http://www.allaboutfrogs.org/funstuff/random/${str}.jpg`] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user