3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-18 08:32:42 +01:00
Commit Graph

5 Commits

Author SHA1 Message Date
reality
44f46cfc75 yes 2015-11-17 18:52:49 +00:00
Kagammor
c7733ee382 Don't show comma if no city is given
The OpenWeatherMap API may return weather for areas unlinked to a city, on which body.name will be undefined. This would previously show up as (for example) "[ , United Kingdom]". This simple ternary will only return a comma if it is also returning a city name.
2015-02-17 01:23:51 +01:00
reality
79a607ba1b weather country 2015-01-28 07:22:32 +00:00
reality
c87c4312ad weather better 2015-01-28 06:26:14 +00:00
reality
1d10ed86e6 weather 2015-01-28 06:16:17 +00:00