Giter Site home page Giter Site logo

chattie's People

Contributors

chasinglogic avatar link867 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chattie's Issues

Can't send anything?

Noobie here, I got the tool working, however when it's supposed to send a message, an exception is thrown:

Message received...
Someone is talking to me...
Parsed:  ['cribbin_bot']
Exception thrown during sync
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/matrix_client/client.py", line 335, in listen_forever
    self._sync(timeout_ms)
  File "/usr/lib/python3.6/site-packages/matrix_client/client.py", line 451, in _sync
    room._put_event(event)
  File "/usr/lib/python3.6/site-packages/matrix_client/room.py", line 251, in _put_event
    listener['callback'](self, event)
  File "/usr/lib/python3.6/site-packages/chattie/connectors/matrix.py", line 69, in parse_event
    incoming_event['content']['body'])
  File "/usr/lib/python3.6/site-packages/chattie/bot.py", line 119, in parse_message
    self.send_message(room_id, reply)
AttributeError: 'Bot' object has no attribute 'send_message'

My code (only 1 handler):

def main_handler(bot, msg, **kwargs):
    print(msg)
    return "yo"
    
handlers = [
    main_handler
]

pip is updated, matrix_client is installed, and I see in the source code there is no send_message method. Am I missing something obvious?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.