forestbelton / naomi

just another friendly chat bot
3 stars 1 forks source link

Weather command #27

Open bramz opened 6 years ago

bramz commented 6 years ago

!weather !weather zipcode !weather city

bramz commented 6 years ago

!weather city still needs to be implemented

RaasAhsan commented 6 years ago
data:    index.js:8518 - 2018-02-14T16:46:25.450Z - info: agro#3028> !weather 71694
data:    index.js:8518 - /home/ubuntu/naomi/lib/commands/WeatherCommand.js:19
data:    index.js:8518 -         message.reply('the current weather for ' + data.name + ' is ' + data.weather[0].description + ', :thermometer: temperature is ' + data.main.temp + ' degrees. :droplet: humidity ' + data.main.humidity + '%, :wind_blowing_face: wind speed: ' + data.wind.speed + ' mph.')
data:    index.js:8518 -                                                                                     ^
data:    index.js:8518 - TypeError: Cannot read property '0' of undefined
LiquidLemon commented 6 years ago

Suggestion: remember the last selection made by each user so they can just use !weather to repeat the last request.