This commit is contained in:
Dragon Fire
2024-03-21 20:47:29 -04:00
parent d0f17d956f
commit a5c84e4fb5
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class FmlCommand extends Command {
try {
const { text } = await request.get('http://www.fmylife.com/random');
const $ = cheerio.load(text, { normalizeWhitespace: true });
const fml = $('a.block text-blue-500').first().text().trim();
const fml = $('a.block').first().text().trim();
return msg.say(fml);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);