mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +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 request = require('node-superfetch');
|
||||||
const cheerio = require('cheerio');
|
const cheerio = require('cheerio');
|
||||||
const { decode: decodeHTML } = require('html-entities');
|
const { decode: decodeHTML } = require('html-entities');
|
||||||
|
const { firstUpperCase } = require('../../util/Util');
|
||||||
const { months } = require('../../assets/json/month');
|
const { months } = require('../../assets/json/month');
|
||||||
|
|
||||||
module.exports = class FloridaManCommand extends Command {
|
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.');
|
if (!article) return msg.say('Could not find any results.');
|
||||||
return msg.say(stripIndents`
|
return msg.say(stripIndents`
|
||||||
**${article.title}**
|
**${article.title}**
|
||||||
${article.firstLine}
|
${firstUpperCase(months[month - 1])} ${day} — ${article.firstLine}
|
||||||
[Read more...](<https://floridamanbirthday.org/${months[month - 1]}-${day}>)
|
[Read more...](<https://floridamanbirthday.org/${months[month - 1]}-${day}>)
|
||||||
`, { files: [article.image] });
|
`, { files: [article.image] });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user