From ebeb85e2742f15512995f6a3f17f4a7f4d230cb0 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 4 Apr 2024 17:27:51 -0400 Subject: [PATCH] Add date to florida man --- commands/events/florida-man.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/events/florida-man.js b/commands/events/florida-man.js index 8b01c16b..500c8f14 100644 --- a/commands/events/florida-man.js +++ b/commands/events/florida-man.js @@ -3,6 +3,7 @@ const { stripIndents } = require('common-tags'); const request = require('node-superfetch'); const cheerio = require('cheerio'); const { decode: decodeHTML } = require('html-entities'); +const { firstUpperCase } = require('../../util/Util'); const { months } = require('../../assets/json/month'); module.exports = class FloridaManCommand extends Command { @@ -45,7 +46,7 @@ module.exports = class FloridaManCommand extends Command { if (!article) return msg.say('Could not find any results.'); return msg.say(stripIndents` **${article.title}** - ${article.firstLine} + ${firstUpperCase(months[month - 1])} ${day} — ${article.firstLine} [Read more...]() `, { files: [article.image] }); }