mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Add date to florida man
This commit is contained in:
@@ -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] });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user