wardellbagby / HangoutsBot

Python 3 Bot for Hangouts
GNU General Public License v3.0
38 stars 25 forks source link

Cleverbot TypeError when responding to bots name #28

Closed SeeJayEmm closed 9 years ago

SeeJayEmm commented 9 years ago

When I reference the bot by name in chat the following error is thrown when it responds. A response is successfully returned in chat.

This appears in both one-on-one chat and group hangouts.

asyncio (3.4.3) if it matters.

ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<think() done, defined at /home/chris/HangoutsBot/Core/Commands/DefaultCommands.py:25> exception=TypeError("'NoneType' object is not iterable",)>
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/home/chris/HangoutsBot/Core/Commands/DefaultCommands.py", line 28, in think
    yield from bot.send_message(event.conv, clever_session.think(' '.join(args)))
TypeError: 'NoneType' object is not iterable
wardellbagby commented 9 years ago

This is fixed on my local version, haven't pushed it yet.