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

[+orion] Bug 'sayonara' #113

Open
orion-botx opened this issue Feb 20, 2021 · 0 comments
Open

[+orion] Bug 'sayonara' #113

orion-botx opened this issue Feb 20, 2021 · 0 comments

Comments

@orion-botx
Copy link

The following answer was a given by sugaroid, and is considered as a bug. Please 
manually review this issue, and close it if it looks unnecessary.

user: sayonara 
sugaroid: An unhandled exception occurred: Traceback (most recent call last):

File "telegram_bot.py", line 162, in on_message
response = str(sg.parse(msg))
File "/app/.heroku/python/lib/python3.8/site-packages/sugaroid/sugaroid.py", line 255, in parse
response = self.neuron.parse(args)
File "/app/.heroku/python/lib/python3.8/site-packages/sugaroid/brain/brain.py", line 76, in parse
response = self.gen_best_match(preprocessed)
File "/app/.heroku/python/lib/python3.8/site-packages/sugaroid/brain/brain.py", line 101, in gen_best_match
return self.bot.get_response(parsed)
File "/app/.heroku/python/lib/python3.8/site-packages/sugaroid/core/bot.py", line 361, in get_response
response = self.generate_response(
File "/app/.heroku/python/lib/python3.8/site-packages/sugaroid/core/bot.py", line 146, in generate_response
if adapter.can_process(input_statement):
File "/app/.heroku/python/lib/python3.8/site-packages/sugaroid/brain/have.py", line 20, in can_process
return statement.words[0] == "have" and not statement.words[-1].endswith("?")
IndexError: list index out of range

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

No branches or pull requests

2 participants