This commit is contained in:
Dragon Fire
2021-04-06 16:48:11 -04:00
parent 28647b3869
commit 2ad527248f
+1 -1
View File
@@ -42,7 +42,7 @@ module.exports = class Covid19Command extends Command {
.setTitle(`Stats for ${country === 'all' ? 'The World' : data.country}`)
.setURL(country === 'all'
? 'https://www.worldometers.info/coronavirus/'
: `https://www.worldometers.info/coronavirus/country/${encodeURIComponent(slug)}/`)
: `https://www.worldometers.info/coronavirus/country/${encodeURIComponent(slug.replace(/ /g, '-'))}/`)
.setThumbnail(country === 'all' ? null : data.countryInfo.flag || null)
.setFooter('Last Updated')
.setTimestamp(data.updated)