shashankpr / DobbyBot

This is a Python implementation of Chatbot using Messenger and Wit.ai.
MIT License
0 stars 0 forks source link

No limit on World Time #24

Closed shashankpr closed 7 years ago

shashankpr commented 7 years ago

Do you want to request a feature, report a bug, or ask a question about wit?

Bug

What is the current behavior?

The Bot returns time for every ordinary query. Query like "John here" is identified as address of location.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

Make a list of countries, their names and their Lat, Long values. Fetch time only if the address belongs to the list.

Easier method : Check api response and exclude non-country and non-political types.

What is the expected behavior?

Should throw an error or not return time value for "ordinary" queries.

shashankpr commented 7 years ago

Time is returned on City's coordinates.

No coordinates can obtained for Countries, hence query should be cities only.

Fixed by #26