mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +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 }) {
|
async run(msg, { country }) {
|
||||||
try {
|
try {
|
||||||
const data = await this.fetchStats(country);
|
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()
|
const embed = new MessageEmbed()
|
||||||
.setColor(0xA2D84E)
|
.setColor(0xA2D84E)
|
||||||
.setAuthor('Worldometers', 'https://i.imgur.com/IoaBMuK.jpg', 'https://www.worldometers.info/coronavirus/')
|
.setAuthor('Worldometers', 'https://i.imgur.com/IoaBMuK.jpg', 'https://www.worldometers.info/coronavirus/')
|
||||||
|
|||||||
Reference in New Issue
Block a user