forked from platypush/platypush
Fabio Manganiello
e982c02524
`assistant` contains the assistant plugin object that triggered the event, but you can't create event hook conditions on attributes that are plugins. The event should also store a `plugin` attribute which contains the unique plugin name, so hooks like these can be built: ``` from platypush import hook from platypush.events.assistant import ConversationStartEvent @when(ConversationStartEvent, plugin="assistant.google") def on_google_conversation_start(): ... ``` It wouldn't be possible to construct a hook condition like the one above on the plugin object reported on the `assistant` attribute. |
||
---|---|---|
.. | ||
event | ||
request | ||
response | ||
__init__.py |