human
Complete the below
def event(*event_list):

    ''''Decorate a function to be triggered on specific IRC events.
    This is one of a number of events, such as \'JOIN\', \'PART\', \'QUIT\', etc.
    (More details can be found in RFC 1459.) When the Sopel bot is sent one of
    these events, the function will execute. Note that functions with an event
    must also be given a rule to match (though it may be \'.*\', which will
    always match) or they will not be triggered.
    :class:`sopel.tools.events` provides human-readable names for many of the
    numeric events, which may help your code be clearer.'
    '''
assistant
#Here is the Python program you requested.
    def add_attribute(function):
        if (not hasattr(function, u'event')):
            function.event = []
        function.event.extend(event_list)
        return function
    return add_attribute