From 641afe72a234cb1cb1352dd30d0f4784dc2a0a17 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 21 Mar 2024 20:46:35 -0400 Subject: [PATCH] Fix fml --- commands/random-res/fml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/random-res/fml.js b/commands/random-res/fml.js index 4351c530..88e26aa4 100644 --- a/commands/random-res/fml.js +++ b/commands/random-res/fml.js @@ -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.article-link').first().text().trim(); + const fml = $('a.block text-blue-500 dark:text-white my-4 ').first().text().trim(); return msg.say(fml); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);