Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Releases: das7pad/hangoutsbot

v3.1

19 Jul 11:55
Compare
Choose a tag to compare
  • full Python 3.5 compatibility, drop 3.4 in using

    • async def
    • async with
    • asyncio.ensure_future
  • introduce a new command style 0611fdf

    • detach help messages from docstrings, register help with plugins.register_help(<text>, <command_name>) or plugins.register_help(<dict <command_name>: <text>>)
    • commands can return text and do not need to implement sending
      it is also possible to return a tuple with conv_id and text or a tuple with conv_id, text and context
    • commands can raise commands.Help to get their help entry

    example: define help content, content register, help entry request, respond with text

  • plugin load is now aware of async initialize methods 09650b6

  • tasks started by plugins.start_asyncio_task are shutdown gracefully 9963621

  • shrink memory leak from sending of context, cleanup every 6h a04cfb3 with a new cache e870266

  • update repo documentation including the addition of virtual environments for the default installation precedure 62069bb

  • update the config: re hangoutsbot/hangoutsbot#841

  • do not replace a hangups import with the legacy hangups_shim 84b80b1

  • refactor hangups_conversation.FakeConversation and hangups_conversation.HangupsConversation into a single class with the protobuf items of hangups instead of own namedtuple 6378d0e

  • refactor permamem and fill the user- and conversationlists with cached data, this allows faster access during runtime a66e75c ec1dcd4 e277da3

  • remove deprecated code including hooks and the legacy slack plugin 6ae76df 859405c 79bdc83 ed04bd5

  • 1to1 creation: do not send the introduction again if the had already contact with the bot user 7b4a292

  • grant access to hangups.client.Client methods from the bot c9a321a

  • replace the print function in every loaded module to forward content to a logger 1de86e2

  • reset the retry counter delayed after receiving an event from hangups 8a9275b and 5fad3c5

  • use an own hangups fork 5258c1d

  • add a command to kick a user from a conversation 884336a

  • move event handling to the handlers.EventHandler 649b6ca

  • allow concurrent execution in handlers.EventHandler.run_pluggable_omnibus 27fe538

  • add a custom logger for the memory config.Config instance 432eaf1

  • config reloads trigger an event to notify registered handler about a change b92017f
    used by the permamem to ensure a standard layout and updated hangups caches 0bbe559

  • fix v3.0 bugs not covered by refactors 3767aad ccba8d7

  • add documentation and apply a Code Style similar to the Google Style

  • use aiohttp to file http requests for wolframalpha 88c63cf

  • cleanup in hangupsbot.HangupsBot drops these methods, most of them were legacy:
    external_send_message_parsed, get_hangups_conversation, get_1on1_conversation, send_message, send_html_to_user_or_conversation, send_html_to_user, send_html_to_conversation, print_conversations, send_message_parsed, external_send_message, _messagecontext_legacy, get_memory_suboption, send_message_segments, messagecontext

Upstream v3

19 Jul 11:50
Compare
Choose a tag to compare
Merge branch 'staging'

merge v3