errbot icon indicating copy to clipboard operation
errbot copied to clipboard

Ideas for going forward

Open zoni opened this issue 13 years ago • 5 comments

(Ab)using this issue as a place to brainstorm about future ideas and what to focus on first.

I have a couple of items on my "Err to-do" list, and could use some feedback from the community on what they'd like to see prioritized/added. Any and all fresh ideas are welcome. Give me something good and I'll add it to the list! :) (but I'm not promising I'll work on it though ;) )

  • [ ] Website: I think Err is one of the most feature-complete bots out there and I see potential for even more growth in the future. The site could use a bit of love to showcase Err and highlight it's core features, perhaps include some documentation directly on the website as well on how to write plugins, emphasizing how easy it to write your own plugins. ~~Also, the webchat is 404'ing right now, and webchat on master is totally broken.~~
  • [ ] Documentation: There definitely needs to be some documentation love. I could use some help narrowing down what needs the most attention, though.
    • The page on plugin dev is a bit of a scattering of random bits of information you can puzzle together to make a working plugin. Some more buildup here and a good reference might be helpful?
    • Installing Err.. Is there clear enough info on this?
    • I think we should document info on how to access the bot's buddy list and dealing with sending/receiving buddy list invitations and such.. I could see plugins being made that hook into this.
  • [ ] Plugins: I have this idea to remove repos.py and make it get loaded dynamically from a url in YAML or JSON format. This way your config could contain a list of URL's where it can get a list of available plugins (kind of like repositories for Linux distributions). Then we can have stuff like a list of official plugins, a separate list of experimental plugins and, for companies, you could have an in-house list that isn't accessible to the outside world for example.
  • [ ] buddylist access: It would be nice for plugins to be able to easily access and manipulate the bot's buddylist.
  • [x] Presence state access/callbacks: It would be nice if plugins received and could act on XMPP presence stanza's.

zoni avatar Mar 25 '13 19:03 zoni

Documentation could definitely do with a bit of love - particular for installation/setup - it took me quite a bit of experimenting to get it installed and working with HipChat correctly. The Py3 conversion, although great, adds a little extra confusion to this too, in particular because some of the plugins in repos.py don't work with Py3.

The plugin dev docs are pretty decent at the moment - they do present how simple it is to create a plugin quite well, but they could do with being a little more structured. It would also be nice to see some information about the persistence tools available to plugins.

The plugin repo might be well suited as a separate err-plugins repo with a series of JSON files for the different groups of plugins you mention. Would also be great to generate something like http://hubot-script-catalog.herokuapp.com/ automatically.

tomusher avatar Apr 05 '13 16:04 tomusher

Thx for the feedback:

  • for the website, I removed the live demo for the moment.
  • on the plugin json file we could add also the python compatibility level so it would improve the situation for the transition.
  • generating a dynamic list from the help system is definitely in the plans

I gonna open an issue on each of those subject that need to be done so people can contribute easily.

gbin avatar Apr 07 '13 22:04 gbin

Hi, I've been playing for some time with an idea to extend Err to process presence stanzas. There are several nice use cases which could utilize such a feature.

Basic idea is to add callbacks for presence (or groupchat presence alone) and to allow plugins to work with this. One of the use cases that could be built on top of this is message passing to users who are not currently in a MUC and bot would react to initial presence sent to chatroom (direct message, request to fetch stored messages etc.). Other use cases such as monitoring user (in MUC) for various statistics based on availability, time online, etc.

However, I'm currently stuck as I'm not even sure how to test such a feature and on the fact that it would require substantial changes/additions all around the code base from the backend level up to the plugin engine and there is a chance this would be available only on some backends.

Your ideas on this? Would it be possible/desirable to extend Err to support processing presence stanzas?

apophys avatar Aug 17 '13 21:08 apophys

Your ideas on this? Would it be possible/desirable to extend Err to support processing presence stanzas?

Yes! It's not been high on my agenda, but I've always wanted to do something like that, as well as giving (high-level) access to the bot's buddylist.

Obviously this would only work for the XMPP backends though, so for IRC ideally there should be some graceful failing. As a relatively simple solution, perhaps something along the lines of https://github.com/gbin/err/commit/fb6cff4c5d4e7e432b2b57059e39afeb3ea68e1d, but for supported bot back-ends.

As to the possibility of making such changes, I think it would be quite doable. The easiest way forward I think would be to introduce new callbacks for such presence events. Then it'd just be a matter of hooking some code up to Err which captures and parses those events from SleekXMPP, and calls the correct callbacks.

zoni avatar Aug 18 '13 12:08 zoni

most of those are done, maybe we could restart a new brainstorm?

gbin avatar May 26 '15 06:05 gbin