chasinglogic / chattie Goto Github PK
View Code? Open in Web Editor NEWA framework for making bots in Python3. Inspired by Hubot.
License: Other
A framework for making bots in Python3. Inspired by Hubot.
License: Other
Please watch the movie and update the readme :D
A room should be able to register for a timed command so it could send a message every monday let's say
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.