From c87c4312ad589ef8807d2c0318da80c897dba7ef Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 28 Jan 2015 06:26:14 +0000 Subject: [PATCH] weather better --- modules/weather/weather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/weather/weather.js b/modules/weather/weather.js index 7310f38..255af25 100644 --- a/modules/weather/weather.js +++ b/modules/weather/weather.js @@ -20,7 +20,7 @@ var weather = function(dbot) { 'json': true }, function(err, response, body) { if(!err && body && _.has(body, 'cod') && body.cod === 200) { - event.reply('Weather in ' + city + ': Temp: ' + body.main.temp + 'C Condition: ' + body.weather[0].description); + event.reply('['+body.name+']' + ' Condition: ' + body.weather[0].description + ' | Temp: ' + Math.round(body.main.temp) + 'C/'+Math.round(body.main.temp* 9 / 5 + 32)+'F | Humidity: ' + body.main.humidity + '% | Wind Speed: ' + body.wind.speed + 'KM/H'); } else { event.reply('There is no weather in ' + city); }