T RUTH PUSHPA LATHA
Created December 19, 2016

Jesus Christ Facts - Jesus Gizmo

Alexa is now a disciple of The Lord Jesus Christ. Say Alexa ask Jesus Gizmo to tell a Jesus Christ Fact & get an interesting unknown fact

50
Jesus Christ Facts - Jesus Gizmo

Things used in this project

Story

Read more

Schematics

USER FLOW

Code

INDEX.JS

JavaScript
/**Jesus is Lord**//**    Copyright T.RUTH PUSHPA LATHA. All Rights Reserved.    Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.*//** * This example has no external dependencies or session management, and shows the most basic way to create a Lambda function for handling Alexa Skill requests. * * Examples: * One-shot model: *  User: "Alexa, ask Jesus Gizmo for a Jesus Christ fact" *  Alexa: "Here's your Jesus Christ Fact: ..." *//** * App ID for the skill */var APP_ID = undefined; //OPTIONAL: replace with "amzn1.echo-sdk-ams.app.[your-unique-value-here]";/** * Array containing JESUS CHRIST FACTS. */var JESUS_CHRIST_FACTS = [                "Jesus Christ took birth as a human being to save you whether you believe it or not This is a fact and THE TRUTH.",                "Jesus got his name from an angel of God who told Joseph that Mary was pregnant by the Holy Spirit and not by a human. Joseph was going to divorce Mary, but the angel told him not to do this, and to name the child Jesus.",                "Jesus was a fairly common name in the first half of the first century A.D. It means in Hebrew: “God saves”.",                "Jesus did not have a last name like us in the 21st century. Christ is not his last name, but a title that means “the anointed one”.",                "Although millions of people celebrate the birth of Jesus on December 25, most scholars agree that he wasn’t born on that day. His birthday is celebrated in December because that was the date of the Jewish Festival of Lights, called the Festival of Hanukkah, which fell on 25 to 30 Kislev. Nobody really knows exactly when Jesus was born. Some scholars believe that Jesus may have been born in spring or summer.",                "The Bible does not say how many wise men came to see Jesus. The traditional number of three came about because three gifts are mentioned.",                "The star of Bethlehem was most likely an astrological conjunction of Saturn and Jupiter. Rumor has it that the star could be a nova or a new star; a comet; or an aligning of Jupiter with the star Regulus.",                "Jesus wasn’t actually born in 1 A.D. Most scholars put the date of Jesus’ birth sometime between 7 B.C. and 2 B.C.",                "People have been using “Xmas” since the 1500s. If you say “Xmas” you’re not taking the “Christ” out of “Christmas”. In Greek, “X,” or Chi, is the first letter of Christ’ name.",                "Jesus wasn’t born in a stable. The wooden crèche we’re used to see as part of Nativity scenes is not accurate.",                "Some people, including the Greek Orthodox Archdiocese of America, believe Jesus was born in a “cave-like place.”",                "The wise men may not have met Jesus as a newborn. Many scholars believe they arrived when Jesus was between 1 and 2 years old. When they came, the Bible says they visited Jesus at his family’ house, not at the place of his birth.",                "After the wise men failed to report back to him about Jesus’ birth, Harod gave orders to kill all the boys in Bethlehem and its vicinity who were younger than 2 years. Experts estimate that between 7 and 20 children were murdered during this massacre.",                "Jesus was the first and only baby born to a virgin and was the only human ever to live a sinless life.",                "Bethlehem, the birthplace of Jesus, means “house of bread.”",                "You know that scene we often see where Joseph and the pregnant Mary are going to Bethlehem, and Joseph is walking while leading a donkey on which Mary is riding? The Bible never says Mary was riding a donkey (she may have walked).",                "Jesus was not white, as most portraits of him would have us believe. Bible declares Jesus’ Jewishness, meaning He likely had light to dark brown skin.",                "When you believe in Jesus Christ you become a part of His own Family yes really you will become a member of His family.",                "Jesus had 4 half-brothers. James, Joseph, Judas and Simon.",                "Jesus had sisters, but they are not named or numbered in the Bible.",                "John the Baptist was Jesus’ second cousin because Mary, the mother of Jesus, and Elisabeth, the mother of John, were both cousins. John was about 6 months older than Jesus.",                "John The Baptist wore clothes made from camel’ hair.",                "John The Baptist never performed any miracles.",                "Mary, the mother of Jesus, speaks in 15 verses in the Bible. Her last words were: Do whatever Jesus tells you.",                "Jesus Christ ministers even today because He is alive and He ministers to us through the Holy Spirit His angels and His Word The Holy Bible.",                "Jesus is frequently addressed as “Rabbi”. The word Rabbi originates from the Hebrew meaning “teacher.” Today it refers to those who have received rabbinical ordination and are educated in Jewish law.",                "The perfume a woman, called Mary, poured on Jesus is said to be worth more than a year’ wages. The Greek translation puts this as more than 300 Roman denarii. In today’s currency, that’s roughly $20,000 of precious perfume poured out on Jesus’ feet.",                "John 11:35 “Jesus wept”, is the shortest verse in the Bible.",                "In every one of Jesus’ recorded prayers, He addressed God as “Father.”",                "The main reason Jesus rode a donkey into Jerusalem was to fulfill the prophecy in Zechariah 9:10: “to proclaim peace to the nations”.",                "Following His resurrection from the dead, Jesus appeared 12 times to his disciples and followers.",                "Jesus was about 30 years old when he began His ministry.",                "Jesus began His public ministry around AD 26, shortly after the ministry of John the Baptist.",                "Jesus’ earthly ministry last about 3.5 years.",                "According to scholars, the first recorded words of Jesus are in Mark 1:15: “The time has come. The kingdom of God has come near. Repent and believe the good news!”",                "Jesus spoke on earth 3 languages: Aramaic was his first language, Hebrew for scholarly questions and Greek on some occasions.",                "It is supposed from Mark 6:2-3 that Jesus was, like his stepfather, a carpenter. But, by today’s notion of the profession, he’d more likely be called an “engineer”.",                "Every quote Jesus used against Satan was from the book of Deuteronomy.",                "The New Testament tells of the life and ministry of Jesus. There is a total of 260 chapters and 7956 verses in the New Testament. If you divide these numbers against each other, you will get the age Jesus started His ministry. 7956 verses : 260 chapters = 30.6 Indeed, Jesus was about 30 years old when he began His ministry.",                "Jesus and the number 40: Jesus fasted in the desert for 40 days; Jesus preached for about 40 months; 40 days separate the Ascension of Jesus of his Resurrection.",                "Jesus, Moses, and Elijah fasted for 40 days. Moses also went without water.",                "God the Father spoke to Jesus audibly 3 times while He was on Earth: At His baptism; At the Transfiguration; Before Jesus went to the cross.",                "The last words of Jesus before he ascended to heaven was: “I am with you always, to the very end of the age”.",                "Jesus Christ can perform miracles in your life also Just call on the Name of Jesus and tell Him your problems He is near to you and ready to hear and answer you and perform unbelievable and impossible miracles in your life. ",                "The feeding of 5000 men was one of Jesus’ miracles. It is the only miracle that is recorded in all four Gospels.",                "The gospels record at least 37 detailed miracles of Jesus.",                "24 of Jesus’ miracles were healing miracles, 10 were nature’s miracle and 3 resurrection miracles.",                "The first miracle Jesus Christ performs during His ministry is changing water into wine at a marriage feast in Cana.",                "The second miraculous catch of fish in John 21:1-14 was the last miracle of Jesus on Earth before His ascension to Heaven.",                "Jesus raised 3 persons from the dead. The son of a widow in Nain, Jairus’ daughter and Lazarus.",                "Jairus’ daughter was 12 years old when Jesus brought her back to life.",                "Jesus used “fish” to perform a miracle 4 times in His earthly ministry: 1. When He fed 5000 men; 2. When a coin appeared in the mouth of a fish to pay taxes; 3. When Jesus told Simon Peter to let down his nets again, then they were filled with fish; 4. When Jesus told the disciples who were fishing to cast their net on the right side of the boat, and it was filled with fish.",                "Jesus Christ was Crucified for your sake He died and defeated Death to redeem you and He was Resurrected and rose again after 3 days Now He lives forever.",                "Jesus Christ's death is your key to life Need more info email me on truthworld777@gmail.com.",                "Jesus was under such extreme stress, when He was praying in the Garden of Gethsemane before His crucifixion, that His sweat became like “giant drops of blood falling to the ground”. The medical term for this is “hematohidrosis.” Only Luke, a doctor, mentions this happening to Jesus.",                "“Gethsemane” is a corruption into English of the Hebrew words GAT and SHMANIM. GAT means wine-press, while SHMANIN means oils, and is the plural of the Hebrew word SHEMEN, for oil. Thus, a literal translation of “Gethsemane” would be “winepress of oils”.",                "The sign nailed to the cross of Jesus stating: “Jesus Of Nazareth, The King Of The Jews” was written in Aramaic, Latin and Greek.",                "Today in many churches, when Jesus’ cross is displayed, the letters INRI are placed on the sign above the cross. INRI is an abbreviation for “Iesus Nazarenus Rex Iudaeorum”, which is the Latin translation of Jesus Of Nazareth, The King Of The Jews.",                "Jesus had been on the cross from approximately 9:00 A.M. until 3:00 P.M., a total of six hours.",                "Traditionally, many believe that Jesus was crucified on a Friday afternoon. The Good Friday–Easter Sunday tradition simply isn’t true or biblical. Most scholars now agree that Jesus was crucified and entombed on a Wednesday afternoon, not on Friday.",                "The name of the place where Jesus was crucified was called, “Golgotha,” which means “The Place of a Skull.” According to early church fathers, the location was called “The Place of the Skull” due to the shape of the hill that apparently reminded people of a human skull. Golgotha is located underneath the Church of the Holy Sepulchre, which lies in the northwest quarter of the Old City of Jerusalem, Israel.",                "Crucifixions were commonplace in Roman times. It was designed not only to kill but also as a terrible warning to other would-be criminals. Victims of crucifixion were to be humiliated, often left to hang completely naked. Crucifixion was also an “excruciating” way to die because it was a very slow and painful means of death. Depending on the circumstance, some people could live for days after being nailed to a cross. Given the nature of crucifixion and its dishonorable form, Roman citizens were not crucified, except for treason.",                "Before being crucified, criminals were beaten with a whip. The thongs of the whip were often strung with knuckle-bones, lead pellets, or other sharp objects, sometimes to fatal effect. This punishment caused considerable bleeding and sometimes death.",                "Most victims of crucifixion eventually fell into unconsciousness, but Jesus remained fully conscious until the end. He died suddenly with a prayer.",                "Jesus uttered 7 things even while He was hanging on the cross inspite of severe and unbearable pain.",                "The first saying of Jesus on the cross was Eloi, Eloi, lama sabachthani? which means: My God, my God, why have you forsaken me?",                "The second saying of  Jesus on the cross was Father, forgive them, for they do not know what they are doing.",                "The third saying of  Jesus on the cross was Truly I tell you, today you will be with me in paradise.",                "The fourth saying of  Jesus on the cross was Father, into your hands I commit my spirit.",                "The fifth saying of  Jesus on the cross was looking at Mary His mother Woman, behold your son and to John His disciple He said Behold your mother!.",                "The sixth saying of  Jesus on the cross was I am thirsty.",                "The seventh saying of  Jesus on the cross was It is finished.",                "The 30 pieces of silver Judas received to betrayed Jesus was 30 Roman Denarii, which are roughly equivalent to an average American accepting payment of about $4,200.",                "Many dead saints came out of their graves at Christ’s death.",                "It was not usual to bury the bodies of criminals. They were left for the dogs and vultures to eat. However, Joseph of Arimathea, a secret disciple of Jesus, asked Pilate that he might take away the body of Jesus; and Pilate granted permission. So he came and took away His body and bury him with the help of Nicodemus.",                "Jesus was very poor on Earth but when he died he was buried in a rich man’s tomb. Isaiah prophesied that Jesus would be buried in a rich man’s tomb. This was fulfilled hundreds of years later.",                "Many scholars believe that the average life expectancy during Jesus’ time on Earth was about 30-40 years.",                "You too can be a Disciple of  Jesus Christ today simply tell Jesus that you want to follow Him and be His disciple He will lead you to know more contact me on this email address truthworld777@gmail.com.",                "There are 4 lists of Jesus’ disciples: Matthew 10:2-4; Mark 3:16-19; Luke 6:14-16 and Acts 1:13. The order in which the names of the disciples are listed varies. But the list always starts with Peter, and always concludes with Judas Iscariot, who betrayed Jesus.",                "Jesus’ disciples were teenagers, almost all under the age of 18 and some as young as 15. All were most likely bachelors. Peter was married and may be some others as well.",                "The first mention of Apostle Paul in the Bible is in Acts 7:58, his first recorded words are in Acts 9:5 and his first recorded sermon in Acts 13: 16-41.",                "Bartholomew, one of Jesus’ disciples was beaten, skinned alive and crucified head down. Some of his skin and bones are still kept in The Basilica of St. Bartholomew in Rome. A part of his skull is in Germany and an arm is venerated at the Canterbury Cathedral in England.",                "John was thrown into a metal pot of boiling oil, but he miraculously survived. The Roman emperor at the time, Domitian, decided after the incident to banish John to the island of Patmos in Greece. When Domitian died, John went back to Ephesus in Turkey where he spent the rest of his days. He died a very old man, the only disciple to do so.",                "The apostle Paul persecuted the Church for about the first 3 years of its existence.",                "Judas Iscariot was one of the 7 people who committed suicide in the Bible. The others were Zimri, Abimelech, Ahithophel, Samson, Saul and Saul’ armor bearer.",                "Word for word, Luke wrote more of the New Testament than Paul.",                "The books Paul wrote in the New Testament were named for the people they were written to.",                "Paul was guarded by 470 soldiers when He was taken to Governor Felix.",                "Paul was a tentmaker, he spoke both Greek and Hebrew, but was unskilled in speech.",                "Timothy was mentioned by Paul 17 times in his letters and had a Jewish mother and a Gentile father.",                "The field where Judas Iscariot committed suicide was named Aceldama or “The Field of Blood”",                "Jesus stayed up all night praying before choosing His 12 disciples. The first two he called were Simon Peter and his brother Andrew.",                "Paul uses the word “joy” more in Philippians than any other Epistle. It was written while he was in prison. He uses the word “grace” within the first 5 verses of each book he wrote. Paul also gives “thanks” in the 1st chapter of 11 of his 13 books.",                "Paul performed the last recorded miracle in the Bible in Acts 28:7-9. He healed the father of Publius, who was sick in bed, suffering from fever and severe diarrhea.",                "In the synoptic Gospels, Jesus only called His apostles “disciples” one time: when He gave them directions for preparing for the Last Supper.",                "Tradition says James was called “Old Camel Knees” because he spent so much time on his knees in prayer.",                "The Gospels share the life story of Jesus Christ on the earth Read them to know more about the greatest MAN who ever lived on the EARTH JESUS CHRIST.",                "The Gospel according to Luke was written by a doctor.",                "Matthew is the only Gospel written by a Jew to the Jews about their Jewish Messiah.",                "At least 60% of Matthew’s Gospel focuses on the teachings of Jesus.",                "There are no parables in John’s Gospel. But it contains metaphors about ordinary things, such as water, harvest, bread, light, a shepherd and a grain of wheat.",                "Lydia was the first Christian who converted in Europe.",                "Jesus called Himself the “Son of man” 79 times in the Gospels.",                "The prayer recorded in John 17 is the longest recorded prayer of Jesus in any of the Gospels.",                "The first three gospels, Matthew, Mark, and Luke, are known as the Synoptic Gospels, because they include many of the same stories, often in a similar sequence and in similar wording.",                "Mark’s Gospel, the shortest of the three, appears almost in its entirety in the Gospel of Matthew, and 53% of Mark is found in Luke.",                "Jesus was not married.",                "Many scholars agree that during his stay on earth, Jesus was an unmarried heterosexual virgin and was circumcised, as were all other Jewish male babies, on the eighth day after his birth.",                "Jesus dealt with sexual temptation just like all males. ",                "According to the Bible in Hebrews 4:15, Jesus endured every (sexual) temptation that humans face, but without sinning.",                "Jesus affirmed that sex should be between one man and one woman in marriage according to Matthew 19:4-5;",                "Jesus prohibits divorce, except in a case of sexual misconduct in Matthew 5:31-32.",                "Jesus said in Matthew 5:28 that if you look on a woman (man) with an obsessive consuming lust, you commit adultery with her (him).",                "Asexuality is not specifically mentioned in the Bible. But Jesus touched on a subset of asexuality in Matthew 19:12 when he said that some men are born without sexual desire for women.",                "It is often said that Mary Magdalene was a prostitute, but nowhere does the Bible say this. Some believe this idea may have come from the Jewish Talmud, which said the city of Magdala had a reputation for prostitution.",                "There is a six-foot tall Jesus figure composed of 30,000 pieces of white LEGO bricks, located in a Swedish protestant church. It took about 40 volunteers and 18 months to build.",                "B.C. does stand for “before Christ.” A.D. actually stands for the Latin phrase anno domini, which means “in the year of our Lord.” The B.C./A.D. dating system is not taught in the Bible. It actually was not fully implemented and accepted until several centuries after Jesus’ death.",                "Christ the King Statue situated in Swiebodzin, western Poland, is the tallest statue of Jesus in the world.",                "Christ the King Statue is 33 metres (108 ft) tall.",                "Christ the King Statue's height of 33 metres symbolises Jesus’ age at his death.",                "Christ the King Statue is 3 metres (9.8 ft) taller than the famous statue of Christ the Redeemer in Rio de Janeiro.",                "Christ the King Statue's crown is 3 metres (9.8 ft) tall.",                "Christ the King Statue weighs 440 tons.",                "Christ the King Statue is Composed of concrete and fibre glass.",                "Christ the King Statue took 5 years to build.",                "Christ the King Statue Was completed on 6 November 2010.",                "Christ the King Statue Cost around $1.5 million to construct.",                "Christ the King Statue was Paid by the donations of the 21,000 residents of the town.",                "Christ the King Statue was led by Sylwester Zawadzki, a retired Polish priest.",                "Rio de Janeiro’s Christ the Redeemer Statue is one of the world’s most famous and impressive religious statues.",                "Rio de Janeiro’s Christ the Redeemer Statue is 30 metres (98 ft) tall.",                "Rio de Janeiro’s Christ the Redeemer Statue's arms stretch 28 metres (92 ft) wide.",                "Rio de Janeiro’s Christ the Redeemer Statue Weighs 635 metric tons.",                "Rio de Janeiro’s Christ the Redeemer Statue Was constructed between 1922 and 1931.",                "Rio de Janeiro’s Christ the Redeemer Statue Made of concrete and soapstone.",                "Rio de Janeiro’s Christ the Redeemer Statue Listed as one of the New 7 Wonders of the World.",                "Rio de Janeiro’s Christ the Redeemer Statue On average, it’s hit by lightning 12 times every summer.",                "Rio de Janeiro’s Christ the Redeemer Statue The statue draws some 300,000 visitors each year.",                "Jesus Christ started the largest religion in the world.",                "There are 2.18 billion Christians of all ages around the world.",                "More than 30% of the world’s population are Christian.",                "26% of Christians live in Europe and 37% in the Americas, 23 % in Africa, 13% in Asia and 1% in the Middle East.",                "50% of Christians are Catholic, 37% are Protestants and 12% are Orthodox Christians.",                "About 90% of Christians live in countries where Christians are in the majority.",                "By 2050, more than 6 out of 10 people on Earth will be Christian or Muslim.",                "One of the Greatest gift from Jesus to humankind is the Bible.",                "It took 16 centuries and 40 men to write the Bible.",                "Among the writers were: Kings, a doctor, prophets, statesmen, priests, military leaders, tax agents, fishermen, poets, shepherds and prisoners.",                "Most of the Bible’s authors were uneducated men, yet the Bible is considered a literary masterpiece.",                "The Bible was the FIRST mass produced printed book in the West by a German guy named Gutenberg.",                "The price of a complete copy of the Gutenberg’s Bible today is between $25 and $35 million. Individual leaves now sell for $20,000–$100,000.",                "They translated the Bible into more than 3000 languages, covering 95% of world’s population.",                "The Bible is the best selling book in history. As of 2014, more than 5 billion Bibles have been sold. In the U.S. alone approx. 170,000 Bibles are either sold or given away every month.",                "Some bookstore owners claim that the Bible is the world’s most shoplifted book.",                "It can be found in almost every home. About 88% of American households own a Bible.",                "The Bible is the only book in the world that is read by people of all races, ages and economic levels.",                "The French philosopher, Voltaire, boasted that within 100 years of his death the Bible would disappear. He died in 1778 and as of 2016 the Bible is still here. The irony is that after Voltaire’s death the French Bible Society used his house to print thousands of Bibles.",                "In 2001, the World Christian Encyclopedia counted 33,830 different Christian denominations.",                "The Catholic Church had an income of US$97 billion in 2010.",                "More people go to Church on Sunday in China than in the whole of Europe.",                "Pope Francis used to work as a bar bouncer in Buenos Aires, Argentina.",                "A Church built into a cave is the largest Church in the Middle East.",                "Billy Graham preached Christianity to over 200 million people.",                "A study has found that going to church lowers your blood pressure.",                "The Catholic Church once put a dead Pope on trial.",                "There are at least seven Christian churches in Antarctica.",                "Armenia became the first nation to adopt Christianity as a State Religion in the year 301.",                "Christians are the most persecuted religious group worldwide. An average of 180 Christians around the world are killed each month for their faith.",                "One of the worst countries in the world for Christians is North Korea. Christians in North Korea face the risk of detention in prison camps, severe torture and, in some cases, execution for practicing their religious beliefs.",                "The Catholic Church spends more money than Apple brings in. Expenditures by the Catholic Church, largely on charity, exceeded $170 billion in 2012, according to The Economist magazine. In that same year, Apple took in $157 billion in revenue.",                "Jesus said that He will for sure come back again to the earth to take with Him those who believe in Him to HeavenWill you be among them?If you want to be with Him then you must do only 1 simple thing which is FREE - Just believe that Jesus Christ is the Son of God come in flesh.That's all. Do invite Him into your heart and He will save you from hell.He is eagerly waiting for you even at this moment Just say Jesus I believe that You are the Son of God come in flesh.I accept You as my personal Lord and Saviour Jesus Christ.If you need more help or information please contact us on the email address which is truthworld777@gmail.com",                "Jesus said No one knows the day or hour of my return.",                "Jesus said Many will come and claim to be me and fool many people.",                "Jesus said Nations will go to war against each other and there will be many threats of war.",                "Jesus said People will starve to death.",                "Jesus said There will be huge earthquakes in some places.",                "Jesus said People will arrest, punish and kill Christians around the world.",                "Jesus said The world will hate Christians.",                "Jesus said Many Christians will lose their faith and betray each other.",                "Jesus said Many false prophets will come and fool a lot of people.",                "Jesus said Evil will spread and cause many people to stop loving others.",                "Jesus said The gospel will be preached in all the world.",                "Jesus said The end times will be the worst time of suffering since the beginning of the world.",                "Jesus said False messiahs and false prophets will come and work great miracles and signs.",                "Jesus said The day of my return will take people by surprise.",                "Jesus said Christians shouldn’t be afraid when these things are happening. Stand up and lift up your heads, because your salvation is near."],            "SKILL_NAME" : "British Jesus Christ Facts",            "GET_FACT_MESSAGE" : "Here's your fact: ",            "HELP_MESSAGE" : "You can say JesusGizmo tell me a Jesus Christ fact, or, you can say exit... What can I help you with?",            "HELP_REPROMPT" : "What can I help you with?",            "STOP_MESSAGE" : "Goodbye!"        }    },    "en-US": {        "translation": {            "FACTS": [                "Jesus Christ took birth as a human being to save you whether you believe it or not This is a fact and THE TRUTH.",                "Jesus got his name from an angel of God who told Joseph that Mary was pregnant by the Holy Spirit and not by a human. Joseph was going to divorce Mary, but the angel told him not to do this, and to name the child Jesus.",                "Jesus was a fairly common name in the first half of the first century A.D. It means in Hebrew: “God saves”.",                "Jesus did not have a last name like us in the 21st century. Christ is not his last name, but a title that means “the anointed one”.",                "Although millions of people celebrate the birth of Jesus on December 25, most scholars agree that he wasn’t born on that day. His birthday is celebrated in December because that was the date of the Jewish Festival of Lights, called the Festival of Hanukkah, which fell on 25 to 30 Kislev. Nobody really knows exactly when Jesus was born. Some scholars believe that Jesus may have been born in spring or summer.",                "The Bible does not say how many wise men came to see Jesus. The traditional number of three came about because three gifts are mentioned.",                "The star of Bethlehem was most likely an astrological conjunction of Saturn and Jupiter. Rumor has it that the star could be a nova or a new star; a comet; or an aligning of Jupiter with the star Regulus.",                "Jesus wasn’t actually born in 1 A.D. Most scholars put the date of Jesus’ birth sometime between 7 B.C. and 2 B.C.",                "People have been using “Xmas” since the 1500s. If you say “Xmas” you’re not taking the “Christ” out of “Christmas”. In Greek, “X,” or Chi, is the first letter of Christ’ name.",                "Jesus wasn’t born in a stable. The wooden crèche we’re used to see as part of Nativity scenes is not accurate.",                "Some people, including the Greek Orthodox Archdiocese of America, believe Jesus was born in a “cave-like place.”",                "The wise men may not have met Jesus as a newborn. Many scholars believe they arrived when Jesus was between 1 and 2 years old. When they came, the Bible says they visited Jesus at his family’ house, not at the place of his birth.",                "After the wise men failed to report back to him about Jesus’ birth, Harod gave orders to kill all the boys in Bethlehem and its vicinity who were younger than 2 years. Experts estimate that between 7 and 20 children were murdered during this massacre.",                "Jesus was the first and only baby born to a virgin and was the only human ever to live a sinless life.",                "Bethlehem, the birthplace of Jesus, means “house of bread.”",                "You know that scene we often see where Joseph and the pregnant Mary are going to Bethlehem, and Joseph is walking while leading a donkey on which Mary is riding? The Bible never says Mary was riding a donkey (she may have walked).",                "Jesus was not white, as most portraits of him would have us believe. Bible declares Jesus’ Jewishness, meaning He likely had light to dark brown skin.",                "When you believe in Jesus Christ you become a part of His own Family yes really you will become a member of His family.",                "Jesus had 4 half-brothers. James, Joseph, Judas and Simon.",                "Jesus had sisters, but they are not named or numbered in the Bible.",                "John the Baptist was Jesus’ second cousin because Mary, the mother of Jesus, and Elisabeth, the mother of John, were both cousins. John was about 6 months older than Jesus.",                "John The Baptist wore clothes made from camel’ hair.",                "John The Baptist never performed any miracles.",                "Mary, the mother of Jesus, speaks in 15 verses in the Bible. Her last words were: Do whatever Jesus tells you.",                "Jesus Christ ministers even today because He is alive and He ministers to us through the Holy Spirit His angels and His Word The Holy Bible.",                "Jesus is frequently addressed as “Rabbi”. The word Rabbi originates from the Hebrew meaning “teacher.” Today it refers to those who have received rabbinical ordination and are educated in Jewish law.",                "The perfume a woman, called Mary, poured on Jesus is said to be worth more than a year’ wages. The Greek translation puts this as more than 300 Roman denarii. In today’s currency, that’s roughly $20,000 of precious perfume poured out on Jesus’ feet.",                "John 11:35 “Jesus wept”, is the shortest verse in the Bible.",                "In every one of Jesus’ recorded prayers, He addressed God as “Father.”",                "The main reason Jesus rode a donkey into Jerusalem was to fulfill the prophecy in Zechariah 9:10: “to proclaim peace to the nations”.",                "Following His resurrection from the dead, Jesus appeared 12 times to his disciples and followers.",                "Jesus was about 30 years old when he began His ministry.",                "Jesus began His public ministry around AD 26, shortly after the ministry of John the Baptist.",                "Jesus’ earthly ministry last about 3.5 years.",                "According to scholars, the first recorded words of Jesus are in Mark 1:15: “The time has come. The kingdom of God has come near. Repent and believe the good news!”",                "Jesus spoke on earth 3 languages: Aramaic was his first language, Hebrew for scholarly questions and Greek on some occasions.",                "It is supposed from Mark 6:2-3 that Jesus was, like his stepfather, a carpenter. But, by today’s notion of the profession, he’d more likely be called an “engineer”.",                "Every quote Jesus used against Satan was from the book of Deuteronomy.",                "The New Testament tells of the life and ministry of Jesus. There is a total of 260 chapters and 7956 verses in the New Testament. If you divide these numbers against each other, you will get the age Jesus started His ministry. 7956 verses : 260 chapters = 30.6 Indeed, Jesus was about 30 years old when he began His ministry.",                "Jesus and the number 40: Jesus fasted in the desert for 40 days; Jesus preached for about 40 months; 40 days separate the Ascension of Jesus of his Resurrection.",                "Jesus, Moses, and Elijah fasted for 40 days. Moses also went without water.",                "God the Father spoke to Jesus audibly 3 times while He was on Earth: At His baptism; At the Transfiguration; Before Jesus went to the cross.",                "The last words of Jesus before he ascended to heaven was: “I am with you always, to the very end of the age”.",                "Jesus Christ can perform miracles in your life also Just call on the Name of Jesus and tell Him your problems He is near to you and ready to hear and answer you and perform unbelievable and impossible miracles in your life. ",                "The feeding of 5000 men was one of Jesus’ miracles. It is the only miracle that is recorded in all four Gospels.",                "The gospels record at least 37 detailed miracles of Jesus.",                "24 of Jesus’ miracles were healing miracles, 10 were nature’s miracle and 3 resurrection miracles.",                "The first miracle Jesus Christ performs during His ministry is changing water into wine at a marriage feast in Cana.",                "The second miraculous catch of fish in John 21:1-14 was the last miracle of Jesus on Earth before His ascension to Heaven.",                "Jesus raised 3 persons from the dead. The son of a widow in Nain, Jairus’ daughter and Lazarus.",                "Jairus’ daughter was 12 years old when Jesus brought her back to life.",                "Jesus used “fish” to perform a miracle 4 times in His earthly ministry: 1. When He fed 5000 men; 2. When a coin appeared in the mouth of a fish to pay taxes; 3. When Jesus told Simon Peter to let down his nets again, then they were filled with fish; 4. When Jesus told the disciples who were fishing to cast their net on the right side of the boat, and it was filled with fish.",                "Jesus Christ was Crucified for your sake He died and defeated Death to redeem you and He was Resurrected and rose again after 3 days Now He lives forever.",                "Jesus Christ's death is your key to life Need more info email me on truthworld777@gmail.com.",                "Jesus was under such extreme stress, when He was praying in the Garden of Gethsemane before His crucifixion, that His sweat became like “giant drops of blood falling to the ground”. The medical term for this is “hematohidrosis.” Only Luke, a doctor, mentions this happening to Jesus.",                "“Gethsemane” is a corruption into English of the Hebrew words GAT and SHMANIM. GAT means wine-press, while SHMANIN means oils, and is the plural of the Hebrew word SHEMEN, for oil. Thus, a literal translation of “Gethsemane” would be “winepress of oils”.",                "The sign nailed to the cross of Jesus stating: “Jesus Of Nazareth, The King Of The Jews” was written in Aramaic, Latin and Greek.",                "Today in many churches, when Jesus’ cross is displayed, the letters INRI are placed on the sign above the cross. INRI is an abbreviation for “Iesus Nazarenus Rex Iudaeorum”, which is the Latin translation of Jesus Of Nazareth, The King Of The Jews.",                "Jesus had been on the cross from approximately 9:00 A.M. until 3:00 P.M., a total of six hours.",                "Traditionally, many believe that Jesus was crucified on a Friday afternoon. The Good Friday–Easter Sunday tradition simply isn’t true or biblical. Most scholars now agree that Jesus was crucified and entombed on a Wednesday afternoon, not on Friday.",                "The name of the place where Jesus was crucified was called, “Golgotha,” which means “The Place of a Skull.” According to early church fathers, the location was called “The Place of the Skull” due to the shape of the hill that apparently reminded people of a human skull. Golgotha is located underneath the Church of the Holy Sepulchre, which lies in the northwest quarter of the Old City of Jerusalem, Israel.",                "Crucifixions were commonplace in Roman times. It was designed not only to kill but also as a terrible warning to other would-be criminals. Victims of crucifixion were to be humiliated, often left to hang completely naked. Crucifixion was also an “excruciating” way to die because it was a very slow and painful means of death. Depending on the circumstance, some people could live for days after being nailed to a cross. Given the nature of crucifixion and its dishonorable form, Roman citizens were not crucified, except for treason.",                "Before being crucified, criminals were beaten with a whip. The thongs of the whip were often strung with knuckle-bones, lead pellets, or other sharp objects, sometimes to fatal effect. This punishment caused considerable bleeding and sometimes death.",                "Most victims of crucifixion eventually fell into unconsciousness, but Jesus remained fully conscious until the end. He died suddenly with a prayer.",                "Jesus uttered 7 things even while He was hanging on the cross inspite of severe and unbearable pain.",                "The first saying of Jesus on the cross was Eloi, Eloi, lama sabachthani? which means: My God, my God, why have you forsaken me?",                "The second saying of  Jesus on the cross was Father, forgive them, for they do not know what they are doing.",                "The third saying of  Jesus on the cross was Truly I tell you, today you will be with me in paradise.",                "The fourth saying of  Jesus on the cross was Father, into your hands I commit my spirit.",                "The fifth saying of  Jesus on the cross was looking at Mary His mother Woman, behold your son and to John His disciple He said Behold your mother!.",                "The sixth saying of  Jesus on the cross was I am thirsty.",                "The seventh saying of  Jesus on the cross was It is finished.",                "The 30 pieces of silver Judas received to betrayed Jesus was 30 Roman Denarii, which are roughly equivalent to an average American accepting payment of about $4,200.",                "Many dead saints came out of their graves at Christ’s death.",                "It was not usual to bury the bodies of criminals. They were left for the dogs and vultures to eat. However, Joseph of Arimathea, a secret disciple of Jesus, asked Pilate that he might take away the body of Jesus; and Pilate granted permission. So he came and took away His body and bury him with the help of Nicodemus.",                "Jesus was very poor on Earth but when he died he was buried in a rich man’s tomb. Isaiah prophesied that Jesus would be buried in a rich man’s tomb. This was fulfilled hundreds of years later.",                "Many scholars believe that the average life expectancy during Jesus’ time on Earth was about 30-40 years.",                "You too can be a Disciple of  Jesus Christ today simply tell Jesus that you want to follow Him and be His disciple He will lead you to know more contact me on this email address truthworld777@gmail.com.",                "There are 4 lists of Jesus’ disciples: Matthew 10:2-4; Mark 3:16-19; Luke 6:14-16 and Acts 1:13. The order in which the names of the disciples are listed varies. But the list always starts with Peter, and always concludes with Judas Iscariot, who betrayed Jesus.",                "Jesus’ disciples were teenagers, almost all under the age of 18 and some as young as 15. All were most likely bachelors. Peter was married and may be some others as well.",                "The first mention of Apostle Paul in the Bible is in Acts 7:58, his first recorded words are in Acts 9:5 and his first recorded sermon in Acts 13: 16-41.",                "Bartholomew, one of Jesus’ disciples was beaten, skinned alive and crucified head down. Some of his skin and bones are still kept in The Basilica of St. Bartholomew in Rome. A part of his skull is in Germany and an arm is venerated at the Canterbury Cathedral in England.",                "John was thrown into a metal pot of boiling oil, but he miraculously survived. The Roman emperor at the time, Domitian, decided after the incident to banish John to the island of Patmos in Greece. When Domitian died, John went back to Ephesus in Turkey where he spent the rest of his days. He died a very old man, the only disciple to do so.",                "The apostle Paul persecuted the Church for about the first 3 years of its existence.",                "Judas Iscariot was one of the 7 people who committed suicide in the Bible. The others were Zimri, Abimelech, Ahithophel, Samson, Saul and Saul’ armor bearer.",                "Word for word, Luke wrote more of the New Testament than Paul.",                "The books Paul wrote in the New Testament were named for the people they were written to.",                "Paul was guarded by 470 soldiers when He was taken to Governor Felix.",                "Paul was a tentmaker, he spoke both Greek and Hebrew, but was unskilled in speech.",                "Timothy was mentioned by Paul 17 times in his letters and had a Jewish mother and a Gentile father.",                "The field where Judas Iscariot committed suicide was named Aceldama or “The Field of Blood”",                "Jesus stayed up all night praying before choosing His 12 disciples. The first two he called were Simon Peter and his brother Andrew.",                "Paul uses the word “joy” more in Philippians than any other Epistle. It was written while he was in prison. He uses the word “grace” within the first 5 verses of each book he wrote. Paul also gives “thanks” in the 1st chapter of 11 of his 13 books.",                "Paul performed the last recorded miracle in the Bible in Acts 28:7-9. He healed the father of Publius, who was sick in bed, suffering from fever and severe diarrhea.",                "In the synoptic Gospels, Jesus only called His apostles “disciples” one time: when He gave them directions for preparing for the Last Supper.",                "Tradition says James was called “Old Camel Knees” because he spent so much time on his knees in prayer.",                "The Gospels share the life story of Jesus Christ on the earth Read them to know more about the greatest MAN who ever lived on the EARTH JESUS CHRIST.",                "The Gospel according to Luke was written by a doctor.",                "Matthew is the only Gospel written by a Jew to the Jews about their Jewish Messiah.",                "At least 60% of Matthew’s Gospel focuses on the teachings of Jesus.",                "There are no parables in John’s Gospel. But it contains metaphors about ordinary things, such as water, harvest, bread, light, a shepherd and a grain of wheat.",                "Lydia was the first Christian who converted in Europe.",                "Jesus called Himself the “Son of man” 79 times in the Gospels.",                "The prayer recorded in John 17 is the longest recorded prayer of Jesus in any of the Gospels.",                "The first three gospels, Matthew, Mark, and Luke, are known as the Synoptic Gospels, because they include many of the same stories, often in a similar sequence and in similar wording.",                "Mark’s Gospel, the shortest of the three, appears almost in its entirety in the Gospel of Matthew, and 53% of Mark is found in Luke.",                "Jesus was not married.",                "Many scholars agree that during his stay on earth, Jesus was an unmarried heterosexual virgin and was circumcised, as were all other Jewish male babies, on the eighth day after his birth.",                "Jesus dealt with sexual temptation just like all males. ",                "According to the Bible in Hebrews 4:15, Jesus endured every (sexual) temptation that humans face, but without sinning.",                "Jesus affirmed that sex should be between one man and one woman in marriage according to Matthew 19:4-5;",                "Jesus prohibits divorce, except in a case of sexual misconduct in Matthew 5:31-32.",                "Jesus said in Matthew 5:28 that if you look on a woman (man) with an obsessive consuming lust, you commit adultery with her (him).",                "Asexuality is not specifically mentioned in the Bible. But Jesus touched on a subset of asexuality in Matthew 19:12 when he said that some men are born without sexual desire for women.",                "It is often said that Mary Magdalene was a prostitute, but nowhere does the Bible say this. Some believe this idea may have come from the Jewish Talmud, which said the city of Magdala had a reputation for prostitution.",                "There is a six-foot tall Jesus figure composed of 30,000 pieces of white LEGO bricks, located in a Swedish protestant church. It took about 40 volunteers and 18 months to build.",                "B.C. does stand for “before Christ.” A.D. actually stands for the Latin phrase anno domini, which means “in the year of our Lord.” The B.C./A.D. dating system is not taught in the Bible. It actually was not fully implemented and accepted until several centuries after Jesus’ death.",                "Christ the King Statue situated in Swiebodzin, western Poland, is the tallest statue of Jesus in the world.",                "Christ the King Statue is 33 metres (108 ft) tall.",                "Christ the King Statue's height of 33 metres symbolises Jesus’ age at his death.",                "Christ the King Statue is 3 metres (9.8 ft) taller than the famous statue of Christ the Redeemer in Rio de Janeiro.",                "Christ the King Statue's crown is 3 metres (9.8 ft) tall.",                "Christ the King Statue weighs 440 tons.",                "Christ the King Statue is Composed of concrete and fibre glass.",                "Christ the King Statue took 5 years to build.",                "Christ the King Statue Was completed on 6 November 2010.",                "Christ the King Statue Cost around $1.5 million to construct.",                "Christ the King Statue was Paid by the donations of the 21,000 residents of the town.",                "Christ the King Statue was led by Sylwester Zawadzki, a retired Polish priest.",                "Rio de Janeiro’s Christ the Redeemer Statue is one of the world’s most famous and impressive religious statues.",                "Rio de Janeiro’s Christ the Redeemer Statue is 30 metres (98 ft) tall.",                "Rio de Janeiro’s Christ the Redeemer Statue's arms stretch 28 metres (92 ft) wide.",                "Rio de Janeiro’s Christ the Redeemer Statue Weighs 635 metric tons.",                "Rio de Janeiro’s Christ the Redeemer Statue Was constructed between 1922 and 1931.",                "Rio de Janeiro’s Christ the Redeemer Statue Made of concrete and soapstone.",                "Rio de Janeiro’s Christ the Redeemer Statue Listed as one of the New 7 Wonders of the World.",                "Rio de Janeiro’s Christ the Redeemer Statue On average, it’s hit by lightning 12 times every summer.",                "Rio de Janeiro’s Christ the Redeemer Statue The statue draws some 300,000 visitors each year.",                "Jesus Christ started the largest religion in the world.",                "There are 2.18 billion Christians of all ages around the world.",                "More than 30% of the world’s population are Christian.",                "26% of Christians live in Europe and 37% in the Americas, 23 % in Africa, 13% in Asia and 1% in the Middle East.",                "50% of Christians are Catholic, 37% are Protestants and 12% are Orthodox Christians.",                "About 90% of Christians live in countries where Christians are in the majority.",                "By 2050, more than 6 out of 10 people on Earth will be Christian or Muslim.",                "One of the Greatest gift from Jesus to humankind is the Bible.",                "It took 16 centuries and 40 men to write the Bible.",                "Among the writers were: Kings, a doctor, prophets, statesmen, priests, military leaders, tax agents, fishermen, poets, shepherds and prisoners.",                "Most of the Bible’s authors were uneducated men, yet the Bible is considered a literary masterpiece.",                "The Bible was the FIRST mass produced printed book in the West by a German guy named Gutenberg.",                "The price of a complete copy of the Gutenberg’s Bible today is between $25 and $35 million. Individual leaves now sell for $20,000–$100,000.",                "They translated the Bible into more than 3000 languages, covering 95% of world’s population.",                "The Bible is the best selling book in history. As of 2014, more than 5 billion Bibles have been sold. In the U.S. alone approx. 170,000 Bibles are either sold or given away every month.",                "Some bookstore owners claim that the Bible is the world’s most shoplifted book.",                "It can be found in almost every home. About 88% of American households own a Bible.",                "The Bible is the only book in the world that is read by people of all races, ages and economic levels.",                "The French philosopher, Voltaire, boasted that within 100 years of his death the Bible would disappear. He died in 1778 and as of 2016 the Bible is still here. The irony is that after Voltaire’s death the French Bible Society used his house to print thousands of Bibles.",                "In 2001, the World Christian Encyclopedia counted 33,830 different Christian denominations.",                "The Catholic Church had an income of US$97 billion in 2010.",                "More people go to Church on Sunday in China than in the whole of Europe.",                "Pope Francis used to work as a bar bouncer in Buenos Aires, Argentina.",                "A Church built into a cave is the largest Church in the Middle East.",                "Billy Graham preached Christianity to over 200 million people.",                "A study has found that going to church lowers your blood pressure.",                "The Catholic Church once put a dead Pope on trial.",                "There are at least seven Christian churches in Antarctica.",                "Armenia became the first nation to adopt Christianity as a State Religion in the year 301.",                "Christians are the most persecuted religious group worldwide. An average of 180 Christians around the world are killed each month for their faith.",                "One of the worst countries in the world for Christians is North Korea. Christians in North Korea face the risk of detention in prison camps, severe torture and, in some cases, execution for practicing their religious beliefs.",                "The Catholic Church spends more money than Apple brings in. Expenditures by the Catholic Church, largely on charity, exceeded $170 billion in 2012, according to The Economist magazine. In that same year, Apple took in $157 billion in revenue.",                "Jesus said that He will for sure come back again to the earth to take with Him those who believe in Him to HeavenWill you be among them?If you want to be with Him then you must do only 1 simple thing which is FREE - Just believe that Jesus Christ is the Son of God come in flesh.That's all. Do invite Him into your heart and He will save you from hell.He is eagerly waiting for you even at this moment Just say Jesus I believe that You are the Son of God come in flesh.I accept You as my personal Lord and Saviour Jesus Christ.If you need more help or information please contact us on the email address which is truthworld777@gmail.com",                "Jesus said No one knows the day or hour of my return.",                "Jesus said Many will come and claim to be me and fool many people.",                "Jesus said Nations will go to war against each other and there will be many threats of war.",                "Jesus said People will starve to death.",                "Jesus said There will be huge earthquakes in some places.",                "Jesus said People will arrest, punish and kill Christians around the world.",                "Jesus said The world will hate Christians.",                "Jesus said Many Christians will lose their faith and betray each other.",                "Jesus said Many false prophets will come and fool a lot of people.",                "Jesus said Evil will spread and cause many people to stop loving others.",                "Jesus said The gospel will be preached in all the world.",                "Jesus said The end times will be the worst time of suffering since the beginning of the world.",                "Jesus said False messiahs and false prophets will come and work great miracles and signs.",                "Jesus said The day of my return will take people by surprise.",                "Jesus said Christians shouldn’t be afraid when these things are happening. Stand up and lift up your heads, because your salvation is near."];/** * The AlexaSkill prototype and helper functions */var AlexaSkill = require('./AlexaSkill');var Fact = function () {    AlexaSkill.call(this, APP_ID);};// Extend AlexaSkillFact.prototype = Object.create(AlexaSkill.prototype);Fact.prototype.constructor = Fact;Fact.prototype.eventHandlers.onSessionStarted = function (sessionStartedRequest, session) {    //console.log("onSessionStarted requestId: " + sessionStartedRequest.requestId + ", sessionId: " + session.sessionId);    // any initialization logic goes here};Fact.prototype.eventHandlers.onLaunch = function (launchRequest, session, response) {    //console.log("onLaunch requestId: " + launchRequest.requestId + ", sessionId: " + session.sessionId);    handleNewFactRequest(response);};/** * Overridden to show that a subclass can override this function to teardown session state. */Fact.prototype.eventHandlers.onSessionEnded = function (sessionEndedRequest, session) {    //console.log("onSessionEnded requestId: " + sessionEndedRequest.requestId + ", sessionId: " + session.sessionId);    // any cleanup logic goes here};Fact.prototype.intentHandlers = {    "GetNewFactIntent": function (intent, session, response) {        handleNewFactRequest(response);    },    "AMAZON.HelpIntent": function (intent, session, response) {        response.ask("You can say JesusGizmo tell me a Jesus Christ fact, or, you can say exit... What can I help you with?", "What can I help you with?");    },    "AMAZON.StopIntent": function (intent, session, response) {        var speechOutput = "Goodbye";        response.tell(speechOutput);    },    "AMAZON.CancelIntent": function (intent, session, response) {        var speechOutput = "Goodbye";        response.tell(speechOutput);    }};/** * Gets a random new fact from the list and returns to the user. */function handleNewFactRequest(response) {    // Get a random Jesus Christ fact from the Jesus Christ FACTS list    var factIndex = Math.floor(Math.random() * JESUS_CHRIST_FACTS.length);    var randomFact = JESUS_CHRIST_FACTS[factIndex];    // Create speech output    var speechOutput = "Here's your Jesus Christ fact: " + randomFact;    var cardTitle = "Your Jesus Christ Fact";    response.tellWithCard(speechOutput, JesusGizmo, speechOutput);}// Create the handler that responds to the Alexa Request.exports.handler = function (event, context) {    // Create an instance of the JesusGizmo skill.    var fact = new Fact();    fact.execute(event, context);};

IntentSchema

JSON
{
  "intents": [
    {
      "intent": "GetNewFactIntent"
    },
    {
      "intent": "AMAZON.HelpIntent"
    },
    {
      "intent": "AMAZON.StopIntent"
    },
    {
      "intent": "AMAZON.CancelIntent"
    }
  ]
 }

SampleUtterances

Tex
GetNewFactIntent a fact
GetNewFactIntent a space fact
GetNewFactIntent tell me a fact
GetNewFactIntent tell me a space fact
GetNewFactIntent give me a fact
GetNewFactIntent give me a space fact
GetNewFactIntent tell me trivia
GetNewFactIntent tell me a space trivia
GetNewFactIntent give me trivia
GetNewFactIntent give me a space trivia
GetNewFactIntent give me some information
GetNewFactIntent give me some space information
GetNewFactIntent tell me something
GetNewFactIntent give me something

AlexaSkill.js

JavaScript
/**Jesus is Lord*//**    Copyright T.RUTH PUSHPA LATHA. All Rights Reserved.    Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES ORCONDITIONSOFANYKIND,eitherexpress or implied. See the License for the specific language governing permissions and limitationsunder the License.*/'use strict';function AlexaSkill(appId) {    this._appId = arn:aws:lambda:us-east-1:087453719021:function:mYJESUSCHRISTFACTS;}AlexaSkill.speechOutputType = {    PLAIN_TEXT: 'PlainText',    SSML: 'SSML'}AlexaSkill.prototype.requestHandlers = {    LaunchRequest: function (event, context, response) {        this.eventHandlers.onLaunch.call(this, event.request, event.session, response);    },    IntentRequest: function (event, context, response) {        this.eventHandlers.onIntent.call(this, event.request, event.session, response);    },    SessionEndedRequest: function (event, context) {        this.eventHandlers.onSessionEnded(event.request, event.session);        context.succeed();    }};/** * Override any of the eventHandlers as needed */AlexaSkill.prototype.eventHandlers = {    /**     * Called when the session starts.     * Subclasses could have overriden this function to open any necessary resources.     */    onSessionStarted: function (sessionStartedRequest, session) {    },    /**     * Called when the user invokes the skill without specifying what they want.     * The subclass must override this function and provide feedback to the user.     */    onLaunch: function (launchRequest, session, response) {        throw "onLaunch should be overriden by subclass";    },    /**     * Called when the user specifies an intent.     */    onIntent: function (intentRequest, session, response) {        var intent = intentRequest.intent,            intentName = intentRequest.intent.name,            intentHandler = this.intentHandlers[intentName];        if (intentHandler) {            console.log('dispatch intent = ' + intentName);            intentHandler.call(this, intent, session, response);        } else {            throw 'Unsupported intent = ' + intentName;        }    },    /**     * Called when the user ends the session.     * Subclasses could have overriden this function to close any open resources.     */    onSessionEnded: function (sessionEndedRequest, session) {    }};/** * Subclasses should override the intentHandlers with the functions to handle specific intents. */AlexaSkill.prototype.intentHandlers = {};AlexaSkill.prototype.execute = function (event, context) {    try {        console.log("session applicationId: " + event.session.application.applicationId);        // Validate that this request originated from authorized source.        if (this._appId && event.session.application.applicationId !== this._appId) {            console.log("The applicationIds don't match : " + event.session.application.applicationId + " and "                + this._appId);            throw "Invalid applicationId";        }        if (!event.session.attributes) {            event.session.attributes = {};        }        if (event.session.new) {            this.eventHandlers.onSessionStarted(event.request, event.session);        }        // Route the request to the proper handler which may have been overriden.        var requestHandler = this.requestHandlers[event.request.type];        requestHandler.call(this, event, context, new Response(context, event.session));    } catch (e) {        console.log("Unexpected exception " + e);        context.fail(e);    }};var Response = function (context, session) {    this._context = context;    this._session = session;};function createSpeechObject(optionsParam) {    if (optionsParam && optionsParam.type === 'SSML') {        return {            type: optionsParam.type,            ssml: optionsParam.speech        };    } else {        return {            type: optionsParam.type || 'PlainText',            text: optionsParam.speech || optionsParam        }    }}Response.prototype = (function () {    var buildSpeechletResponse = function (options) {        var alexaResponse = {            outputSpeech: createSpeechObject(options.output),            shouldEndSession: options.shouldEndSession        };        if (options.reprompt) {            alexaResponse.reprompt = {                outputSpeech: createSpeechObject(options.reprompt)            };        }        if (options.cardTitle && options.cardContent) {            alexaResponse.card = {                type: "Simple",                title: options.cardTitle,                content: options.cardContent            };        }        var returnResult = {                version: '1.0',                response: alexaResponse        };        if (options.session && options.session.attributes) {            returnResult.sessionAttributes = options.session.attributes;        }        return returnResult;    };    return {        tell: function (speechOutput) {            this._context.succeed(buildSpeechletResponse({                session: this._session,                output: speechOutput,                shouldEndSession: true            }));        },        tellWithCard: function (speechOutput, cardTitle, cardContent) {            this._context.succeed(buildSpeechletResponse({                session: this._session,                output: speechOutput,                cardTitle: cardTitle,                cardContent: cardContent,                shouldEndSession: true            }));        },        ask: function (speechOutput, repromptSpeech) {            this._context.succeed(buildSpeechletResponse({                session: this._session,                output: speechOutput,                reprompt: repromptSpeech,                shouldEndSession: false            }));        },        askWithCard: function (speechOutput, repromptSpeech, cardTitle, cardContent) {            this._context.succeed(buildSpeechletResponse({                session: this._session,                output: speechOutput,                reprompt: repromptSpeech,                cardTitle: cardTitle,                cardContent: cardContent,                shouldEndSession: false            }));        }    };})();module.exports = AlexaSkill;

Credits

T RUTH PUSHPA LATHA

T RUTH PUSHPA LATHA

3 projects • 2 followers

Comments