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

No response is returned by the chatterbot-weather module #4

Open
piyushgohel opened this issue Jun 13, 2017 · 1 comment
Open

No response is returned by the chatterbot-weather module #4

piyushgohel opened this issue Jun 13, 2017 · 1 comment
Labels

Comments

@piyushgohel
Copy link

piyushgohel commented Jun 13, 2017

Hello,

I have implemented example given with code. But bot respond nothing.give me suggestion how to implement it?

from chatterbot import ChatBot

chatbot = ChatBot(
     'Weather Bot',
     input_adapter='chatterbot.input.TerminalAdapter',
     output_adapter='chatterbot.output.TerminalAdapter',
     logic_adapters=[
         'chatterbot_weather.weather_adapter.WeatherLogicAdapter'
       ]
)
response = chatbot.get_response('What is the weather like today?')

Best Regards,
Piyush

@gunthercox
Copy link
Owner

Hi @piyushgohel It looks like you have this implemented correctly. I believe you will need to include an additional parameter called forecastio_api_key.

Based on the information on the PyPi page for forcastio (https://pypi.python.org/pypi/python-forecastio/) you may be able to get an API key to use from https://darksky.net/dev/
(It appears that Forcastio was renamed to Dark Sky at some point this past year.)

@gunthercox gunthercox mentioned this issue Sep 29, 2017
@gunthercox gunthercox changed the title weather chatterbot not respond No response is returned by the chatterbot-weather module Sep 29, 2017
@gunthercox gunthercox added the bug label Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants