def intent(*intent_list):
 def add_attribute(function):
  if (not hasattr(function, u'intents')):
   function.intents = []
  function.intents.extend(intent_list)
  return function
 return add_attribute

def intent ( * intent_list ) : def add_attribute ( function ) : if ( not hasattr ( function , u'intents' ) ) : function . intents = [ ] function . intents . extend ( intent_list ) return function return add_attribute
decorate a callable trigger on a message with any of the given intents .