joaoricardo000 / whatsapp-bot-seed

A small python framework to create a whatsapp bot, with regex-callback message routing.
730 stars 243 forks source link

Error few commands are not working #105

Open tomriddle54 opened 7 years ago

tomriddle54 commented 7 years ago

/help is working /ping is working

but when i type youtube its showing this error

Traceback (most recent call last): File "/home/ubuntu/Whatapp/yowsup/src/utils/media_sender.py", line 50, in send_by_url file_path = self._download_file(file_url) File "/home/ubuntu/Whatapp/yowsup/src/utils/media_sender.py", line 155, in _download_file video.download(file_path) File "/usr/local/lib/python2.7/dist-packages/pytube/models.py", line 73, in download raise OSError('Make sure path exists.') OSError: Make sure path exists.

and when i type /s apple

router.py [ERROR][2017-09-09 14:06:39,507] Error routing message: /s apple Message: ID: 3EB0C0FB1F85CD50E719 From: 919959748062@s.whatsapp.net Type: text Timestamp: 1504965998 Body: /s apple Traceback (most recent call last): File "/home/ubuntu/Whatapp/yowsup/src/router.py", line 76, in handle_callback data = callback(message, match) File "/home/ubuntu/Whatapp/yowsup/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'