def board_to_discord(grid, empty='       '):
    """Turn a board from `generate_board` into a message using Discord
       spoilers and emoji. The `empty` parameter is what
       representation should be used for an empty square.
    """
    REPR = [':bomb:', empty, ':one:', ':two:', ':three:', ':four:', ':five:', ':six:', ':seven:', ':eight:']
    return '\n'.join(''.join(map(lambda n: "||{}||".format(REPR[n+1]), row)) for row in grid)