From 79c1ea4083158794207a6da9b12604c8ffd16e2c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 6 Apr 2021 13:26:54 -0400 Subject: [PATCH] Fix world stats in covid --- 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 79eb462a..b56ae83c 100644 --- a/commands/events/covid-19.js +++ b/commands/events/covid-19.js @@ -35,7 +35,7 @@ module.exports = class Covid19Command extends Command { async run(msg, { country }) { try { const data = await this.fetchStats(country); - const slug = data.country === 'USA' ? 'us' : data.country.toLowerCase(); + const slug = country === 'all' ? null : data.country === 'USA' ? 'us' : data.country.toLowerCase(); const embed = new MessageEmbed() .setColor(0xA2D84E) .setAuthor('Worldometers', 'https://i.imgur.com/IoaBMuK.jpg', 'https://www.worldometers.info/coronavirus/')