mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 00:06:42 +02:00
Fix world stats in covid
This commit is contained in:
@@ -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/')
|
||||
|
||||
Reference in New Issue
Block a user