def eventhandler(*args, **kwargs):
def wrapper(func):<EOL><INDENT>if isinstance(kwargs['<STR_LIT>'], basestring):<EOL><INDENT>kwargs['<STR_LIT>'] = [kwargs['<STR_LIT>']]<EOL><DEDENT>func.is_eventhandler = True<EOL>func.events = kwargs['<STR_LIT>']<EOL>return func<EOL><DEDENT>return wrapper<EOL>
Decorator.  Marks a function as a receiver for the specified slack event(s).

* events - String or list of events to handle