Chattie, a bot framework for Python. Inspired by Hubot

Chattie, a bot framework for Python. Inspired by Hubot

13 comments · 87% upvoted · source · other discussions

comments

sourcedexter

Seems to be a cool framework. Do you have a demo of it in action ?

ChasingLogic [OP]

https://github.com/praelatus/thorin

Yep we're using it on my other project, and on my podcast

Additionally the base bot itself is a working demo, you just need to install it with pip3 install chattie and run chattie run --connector term !

sourcedexter

Cool ,I will give it a shot! Thanks

lost_send_berries

Neat, can I suggest putting the list of connectors higher in the readme?

ChasingLogic [OP]

Done!

[deleted]

[deleted]

ChasingLogic [OP]

Yeah I've been looking into how to do that I think I'll end up adding instructions in the new that says "pip install this if you want to use this connector"

Edit:

I've made this change.

[deleted]

[deleted]

ChasingLogic [OP]

Thanks for this it's working now!

camabeh

How does it compare to Errbot? They seem to be used for same purpose.

ChasingLogic [OP]

So I've actually used Errbot in the past, the primary things I didn't like about Errbot:

  • Doesn't use entry_points for plugin management. This makes versioning things super difficult because it's builtin plugin manager just downloads things from Git

  • Complexity, Errbot has A LOT of functionality most of it I didn't need or want. For example ACL's, baked in sub commands, baked in template rendering etc. If those things are required on a per command basis the trick author can implement them in their module.

  • Kind of with the above, making a backend for Errbot is wayyyyyy harder IMO for Errbot for comparison here is there telegram backend:

https://github.com/errbotio/errbot/blob/master/errbot/backends/telegram_messenger.py

Here is the Chattie equivalent:

https://github.com/chasinglogic/Chattie/blob/master/src/chattie/connectors/telegram.py

In summary, Chattie is a small core that is focused on standard tooling and being simple to extend. Errbot is much more full-featured. It's like Flask vs Django!

Thanks!

GitHubPermalinkBot

I tried to turn your GitHub links into permanent links (press "y" to do this yourself):


Shoot me a PM if you think I'm doing something wrong. To delete this, click here.

camabeh

Thanks for comparsion

AndydeCleyre

Can you comment on telegram bot feature support (inline keyboards, inline bots, etc.)?

ChasingLogic [OP]

So currently none of those features are supported. It'd be pretty easy to add inline keyboard support to the connector, inline bots I'm not so sure about.