3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-27 05:02:36 +01:00
Commit Graph

4 Commits

Author SHA1 Message Date
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