mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +02:00
Fix weather condition joining
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.map(data => `${data.main} (${data.description})`).join(', '))
|
||||
.addField('❯ Condition', body.weather.map(data => `${data.main} (${data.description})`).join('\n'))
|
||||
.addField('❯ Temperature', `${body.main.temp}°F`, true)
|
||||
.addField('❯ Humidity', `${body.main.humidity}%`, true)
|
||||
.addField('❯ Wind Speed', `${body.wind.speed} mph`, true);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "100.0.0",
|
||||
"version": "100.0.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user