Add date to florida man

This commit is contained in:
Dragon Fire
2024-04-04 17:27:51 -04:00
parent 22e9e6b584
commit ebeb85e274
+2 -1
View File
@@ -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...](<https://floridamanbirthday.org/${months[month - 1]}-${day}>)
`, { files: [article.image] });
}