def get_chat(df):
    """ method to get a chat message of a SOCGameTextMsg
    
    Parameters
    ----------
    df: pandas dataframe
        The row of the game dataframe that holds a SOCGameTextMsg message
        
    Returns
    -------
    nickname : str
        The nickname of the emitter
    chat_msg : str
        The chat message emitted 
    """  
    
    # keep only the message field of the log
    message = df["Message"]
    
    #SOCGameTextMsg:game=pilot01|nickname=Dave|text=sorry
    # break message by |
    fields = message.split('|')
    # field[0] -> game=sth
    # field[1] -> nickname=sth
    # field[2] -> text=str
    nickname = fields[1][fields[1].find("=")+1:]
    chat_msg = fields[2][fields[2].find("=")+1:]
    return (nickname, chat_msg)