Mercurial > libervia-backend
comparison sat/plugins/plugin_exp_parrot.py @ 4051:c23cad65ae99
core: renamed `messageReceived` trigger to `message_received`
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 29 May 2023 13:32:08 +0200 |
parents | 524856bd7b19 |
children |
comparison
equal
deleted
inserted
replaced
4050:199473ffe4ea | 4051:c23cad65ae99 |
---|---|
53 # FIXME: potentially unsecure, specially with e2e encryption | 53 # FIXME: potentially unsecure, specially with e2e encryption |
54 | 54 |
55 def __init__(self, host): | 55 def __init__(self, host): |
56 log.info(_("Plugin Parrot initialization")) | 56 log.info(_("Plugin Parrot initialization")) |
57 self.host = host | 57 self.host = host |
58 host.trigger.add("messageReceived", self.message_received_trigger, priority=100) | 58 host.trigger.add("message_received", self.message_received_trigger, priority=100) |
59 # host.trigger.add("sendMessage", self.send_message_trigger, priority=100) | 59 # host.trigger.add("sendMessage", self.send_message_trigger, priority=100) |
60 try: | 60 try: |
61 self.host.plugins[C.TEXT_CMDS].register_text_commands(self) | 61 self.host.plugins[C.TEXT_CMDS].register_text_commands(self) |
62 except KeyError: | 62 except KeyError: |
63 log.info(_("Text commands not available")) | 63 log.info(_("Text commands not available")) |