def __init__(self, line, timestamp, players, diplomacy_type=None, source='game'):
        """Initalize."""
        self.data = {
            'timestamp': timestamp,
            'source': source
        }
        if line.find('Voobly: Ratings provided') > 0:
            self._parse_ladder(line)
        elif line.find('Voobly') == 3:
            self._parse_voobly(line)
        elif line.find('<Rating>') > 0:
            self._parse_rating(line)
        elif line.find('@#0<') == 0:
            self._parse_injected(line)
        else:
            self._parse_chat(line, players, diplomacy_type)
def __init__ ( self , line , timestamp , players , diplomacy_type = None , source = 'game' ) : self . data = { 'timestamp' : timestamp , 'source' : source } if line . find ( 'Voobly: Ratings provided' ) > 0 : self . _parse_ladder ( line ) elif line . find ( 'Voobly' ) == 3 : self . _parse_voobly ( line ) elif line . find ( '<Rating>' ) > 0 : self . _parse_rating ( line ) elif line . find ( '@#0<' ) == 0 : self . _parse_injected ( line ) else : self . _parse_chat ( line , players , diplomacy_type )
Initalize.