From 2ad527248f301ea8c3468d15c951d8ccd34bc520 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 6 Apr 2021 16:48:11 -0400 Subject: [PATCH] Fix 404 --- commands/events/covid-19.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/events/covid-19.js b/commands/events/covid-19.js index d932b048..95e1d6c9 100644 --- a/commands/events/covid-19.js +++ b/commands/events/covid-19.js @@ -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)