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