Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weather command #27

Open
bramz opened this issue Feb 13, 2018 · 3 comments
Open

Weather command #27

bramz opened this issue Feb 13, 2018 · 3 comments

Comments

@bramz
Copy link
Contributor

bramz commented Feb 13, 2018

!weather
!weather zipcode
!weather city

@bramz bramz changed the title Weather command !weather zipcode Weather command Feb 13, 2018
@bramz
Copy link
Contributor Author

bramz commented Feb 14, 2018

!weather city still needs to be implemented

@RaasAhsan
Copy link
Collaborator

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants