mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 00:04:48 +02:00
Fix
This commit is contained in:
@@ -45,7 +45,7 @@ module.exports = class WeatherCommand extends Command {
|
||||
)
|
||||
.setURL(`https://openweathermap.org/city/${body.id}`)
|
||||
.setTimestamp()
|
||||
.addField('❯ Condition', body.weather.join('\n').map(data => `${data.main} (${data.description})`))
|
||||
.addField('❯ Condition', body.weather.map(data => `${data.main} (${data.description})`).join(', '))
|
||||
.addField('❯ Temperature', `${body.main.temp}°F`, true)
|
||||
.addField('❯ Humidity', `${body.main.humidity}%`, true)
|
||||
.addField('❯ Wind Speed', `${body.wind.speed} mph`);
|
||||
|
||||
Reference in New Issue
Block a user