def intent(self, intent):
        ''' Decorator to register intent handler'''

        def _handler(func):
            self._handlers['IntentRequest'][intent] = func
            return func

        return _handler
def intent ( self , intent ) : def _handler ( func ) : self . _handlers [ 'IntentRequest' ] [ intent ] = func return func return _handler
Decorator to register intent handler