The old Google websearch API is deprecated.
Because of this the bot throws
Body: /search cat
Traceback (most recent call last):
File ".../src/router.py", line 76, in handle_callback
data = callback(message, match)
File ".../src/views/google.py", line 29, in google_search
page_url = urllib.unquote(req.json()["responseData"]["results"][0]["url"])
TypeError: 'NoneType' object has no attribute 'getitem'
at me when i try to search something.
An fix would be to modify the code to fit the custom search API.
The old Google websearch API is deprecated. Because of this the bot throws Body: /search cat Traceback (most recent call last): File ".../src/router.py", line 76, in handle_callback data = callback(message, match) File ".../src/views/google.py", line 29, in google_search page_url = urllib.unquote(req.json()["responseData"]["results"][0]["url"]) TypeError: 'NoneType' object has no attribute 'getitem' at me when i try to search something.
An fix would be to modify the code to fit the custom search API.