Guest User

Untitled

a guest
Nov 19th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. "use strict";
  2.  
  3. var Alexa = require("alexa-sdk");
  4.  
  5. var handlers = {
  6. "PrincipleIntent": function () {
  7. this.response.speak("The current principle of Bordentown Regional Highschool is Robert Walder, as of 2017. ");
  8. this.emit(':responseReady');
  9. },
  10. "LaunchRequest": function () {
  11. this.response.speak("Hello, Welcome to the Bordentown Regional High School Alexa Skill. You can ask me who the principle is, what time does the school open, or even what the school's add is.").listen("What would you like to know?");
  12. this.emit(':responseReady');
  13. },
  14. 'AMAZON.StopIntent': function() {
  15. this.response.speak('Thanks for stoping by, have a nice day!');
  16. this.emit(':responseReady');
  17. },
  18.  
  19. // Cancel
  20. 'AMAZON.CancelIntent': function() {
  21. this.response.speak('Ok, thanks for asking!');
  22. this.emit(':responseReady');
  23. },
  24.  
  25. "PhoneIntent": function () {
  26. this.response.speak("Bordentown Regional High School's Phone number is 609-298-0025, again their phone number is 609-298-0025");
  27. this.emit(':responseReady');
  28. },
  29.  
  30. "OpenAndCloseIntent": function () {
  31. this.response.speak("Bordentown Regional High School is open Monday through Friday, from 7 AM to 5 PM Eastern Standard time.");
  32. this.emit(':responseReady');
  33. },
  34.  
  35. "AddressIntent": function () {
  36. this.response.speak("Bordentown Regional High School's address is 318 Ward Avenue, Bordentown, New Jersey, 08505");
  37. this.emit(':responseReady');
  38. }
  39.  
  40. };
  41.  
  42. exports.handler = function(event, context, callback){
  43. var alexa = Alexa.handler(event, context);
  44. alexa.registerHandlers(handlers);
  45. alexa.execute();
  46. };
Add Comment
Please, Sign In to add comment