commit f8befaad5131b663683f86f46bb004dda40b4da8
parent 49f34e41e9be96eeade3e621c9f92e6ba8f6cf3a
Author: Demonstrandum <moi@knutsen.co>
Date: Mon, 23 Mar 2020 03:40:55 +0000
Merge branch 'master' of github.com:Demonstrandum/Simp-O-Matic
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/commands/weather.ts b/lib/commands/weather.ts
@@ -32,13 +32,13 @@ export default (home_scope: HomeScope) => {
const embed = d.main
? new MessageEmbed()
- .setTitle(`${d.main.temp}°C (feels like ${d.main.feels_like}°C`)
- .setAuthor(`${d.name}, ${country} ${hour}:${date.getMinutes()}`)
+ .setTitle(`${d.main.temp}°C (feels like ${d.main.feels_like}°C)`)
+ .setAuthor(`${hour}:${date.getMinutes()} ${d.name}, ${country}`)
.setDescription(d.weather[0].description)
.setThumbnail(`https://openweathermap.org/img/wn/${d.weather[0].icon}@2x.png`)
.addFields(
- { name: 'Day temp', value: d.main.temp_max + '°C', inline: true },
- { name: 'Night temp', value: d.main.temp_min + '°C', inline: true })
+ { name: 'day temp', value: d.main.temp_max + '°C', inline: true },
+ { name: 'night temp', value: d.main.temp_min + '°C', inline: true })
: new MessageEmbed()
.setTitle(`Cannot get weather information from ${location}.`);