The bible is a moral book

My opponent brought up several troubling passages in the Bible. I'd throw in a few more, like Psalm 137:9 and Numbers 31.Methodological issuesThe issue is that my opponent reads the passages of the Bible as proof texts, as if I'll find some wholesome parts of the Bible and use them to rebut what he has said. This, however, is completely wrong. It assumes inerrantist and fundamentalist interpretation as the only viable interpretation. It is not. In fact, such interpretations were a rarity until the fundamentalists of the early 1900's. Unfortunately, skeptic and Christian alike have swallowed this falsity wholesale.The Bible was written by men and women. It is first and foremost literature. In Tolstoy's "War in Peace," there is rape. In "Moby Dick," there is cannibalism. In Weisel's "Night," there are all manners of tortures and horrors. Yet no one calls these beautiful works "immoral," for they encapsulate the human experience for these people.The Bible is an anthology of works that encapsulates the human experience. It is deeply flawed, contradictory, and contains horrible things, but it also is deeply inspiring, empathetic, and contains stories of great beauty and love. This is the human experience. It is no more 'immoral' than any of the other classics I provided.The Story of the BibleIn the beginning, man created their God, Yahveh. Yahveh was a tribal deity to them, just as Chemosh was the Moabites. Yahveh was a brutal deity and a "man of war" (Exodus 15:3), coincidentally just as the Israelites were. He commands genocide, rape, and a brutist understanding of "chesed," a covenant loyalty to family, race, and religion.Later, when these stories were re-read hundreds of years after their composition, things were different. Now, the Jews were oppressed by the Assyrians and Babylonians. Prophets like Amos, Jonah, Micah, and others began preaching a univeral God, and a God who cared about the poor and needy more than war, sacrifice, or right beliefs. (Amos 2:7, 4:1-2, 5:11 - Micah 6:8 - Jonah 4:10-11). This God replaced the tribal deity of old.It later changed again hundreds of years later. The Romans were in control now. New ideas about God came. That is when Jesus came around and the legendary stories about him grew. The Jesus of faith was highly universalist, and his ideas of God hung on compassion and kindness to all (friend and enemy), as well as self-sacrifice and love. (Matthew 25) This went beyond social boundaries (Mark 2:16), gender roles (Luke 8:1-3), and race (Luke 10:25-37).Jesus is said to have died "fulfilling the law." (Matthew 5:17) Jesus died to connect all people together and for all people to be reunited with each other and with God... the ultimate sacrifice.The Culmination of The Story of the BibleThe culmination of the Protestant Christian Bible is in these passages Jesus replied: “‘Love the Lord your God with all your heart and with all your soul and with all your mind.’ This is the first and greatest commandment. And the second is like it: ‘Love your neighbor as yourself.’ All the Law and the Prophets hang on these two commandments.” "There is neither Jew nor Gentile, neither slave nor free, nor is there male and female, for you are all one in Christ Jesus."This is the culmination of the story of Scripture, and I doubt anyone can say that's "immoral."