Open bramz opened 6 years ago
!weather city
still needs to be implemented
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
Suggestion: remember the last selection made by each user so they can just use !weather
to repeat the last request.
!weather !weather
zipcode
!weathercity