You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been able to get the chat.py example working, with one small problem. I tried sending my bot "!!/random", and it crashes:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/ubuntu/tardisbot/ChatExchange/chatexchange/browser.py", line 272, in _runner
self.on_activity(activity)
File "/home/ubuntu/tardisbot/ChatExchange/chatexchange/wrapper.py", line 243, in on_activity
on_event(event, self)
File "main.py", line 56, in on_message
message.reply(str(random.random()))
AttributeError: 'MessagePosted' object has no attribute 'reply'
I think this is due to the program returning a MessagePosted object, in stead of a Message object, which has a reply method.
The text was updated successfully, but these errors were encountered:
I have been able to get the
chat.py
example working, with one small problem. I tried sending my bot "!!/random", and it crashes:I think this is due to the program returning a
MessagePosted
object, in stead of aMessage
object, which has areply
method.The text was updated successfully, but these errors were encountered: