(self, event)
takes events, tags them with the current backend, and places them on bot event_queue
takes events, tags them with the current backend, and places them on bot event_queue
takes events tags them with the current backend and places them on bot event_queue
def handle_event(self, event):
        """
        takes events, tags them with the current backend, and places them on bot event_queue
        """
        if isinstance(event, Event):
            event.source_client = self
            event.source_client_id = self.id
            self.bot.new_event(event)
        elif isinstance(event, dict):
            event['client'] = self
            event['client_id'] = self.id
            self.bot.new_event(event)
        else:
            self.log.error('invalid Event passed to {0}')
def handle_event ( self , event ) : if isinstance ( event , Event ) : event . source_client = self event . source_client_id = self . id self . bot . new_event ( event ) elif isinstance ( event , dict ) : event [ 'client' ] = self event [ 'client_id' ] = self . id self . bot . new_event ( event ) else : self . log . error ( 'invalid Event passed to {0}' )