text: /* eslint-disable  func-names */
  /* eslint quote-props: ["error", "consistent"]*/
  /**
   * This sample demonstrates a simple skill built with the Amazon Alexa Skills
   * nodejs skill development kit.
   * This sample supports multiple lauguages. (en-US, en-GB, de-DE).
   * The Intent Schema, Custom Slots and Sample Utterances for this skill, as well
   * as testing instructions are located at https://github.com/alexa/skill-sample-nodejs-fact
   **/
  
  'use strict';
  
  const Alexa = require('alexa-sdk');
  
  const APP_ID = undefined;  // TODO replace with your app ID (OPTIONAL).
  
  const languageStrings = {
      'en-US': {
          translation: {
              FACTS: [
                  "I'm Brinley Cat.  I'm 4 years old.  Did you know thats 28 years old in cat years?",
                  "Meeeooowwww!  I'm a cat.  I'm Brinley Cat",
                  "Meow!  Get off the counter Brinley Cat!",
                  "Rooowwwwrrrrr!",
                  "I can spell Brinlee Cat: 'B' 'R' 'I' 'N' 'L' 'E' 'E'.  'C' 'A' 'T'",
                  "I have two cats.  Their names are Tank and Tiny.  They are Silly",
                  "Brinley cat likes chocolate milk.  Meow.",
                  "Meow.  Don't you do it.  Meow.  Don't you do it.  Meow.  Meow.  Don't you do it Brinley Cat!"
              ],
              SKILL_NAME: 'Brinlee Cat',
              GET_FACT_MESSAGE: "Do Brinley Cat ",
              HELP_MESSAGE: 'Just say Do Brinley Cat, or, you can say exit...',
              HELP_REPROMPT: 'Um, What can I help you with Brinley?',
              STOP_MESSAGE: 'Bye Bye, Meeeooowww!',
          }
      }
  };
  
  const handlers = {
      'LaunchRequest': function () {
          this.emit('GetFact');
      },
      'GetNewFactIntent': function () {
          this.emit('GetFact');
      },
      'GetFact': function () {
          // Get a random space fact from the space facts list
          // Use this.t() to get corresponding language data
          const factArr = this.t('FACTS');
          const factIndex = Math.floor(Math.random() * factArr.length);
          const randomFact = factArr[factIndex];
  
          // Create speech output
          const speechOutput = this.t('GET_FACT_MESSAGE') + randomFact;
          this.emit(':tellWithCard', speechOutput, this.t('SKILL_NAME'), randomFact);
      },
      'AMAZON.HelpIntent': function () {
          const speechOutput = this.t('HELP_MESSAGE');
          const reprompt = this.t('HELP_MESSAGE');
          this.emit(':ask', speechOutput, reprompt);
      },
      'AMAZON.CancelIntent': function () {
          this.emit(':tell', this.t('STOP_MESSAGE'));
      },
      'AMAZON.StopIntent': function () {
          this.emit(':tell', this.t('STOP_MESSAGE'));
      },
      'SessionEndedRequest': function () {
          this.emit(':tell', this.t('STOP_MESSAGE'));
      },
  };
  
  exports.handler = (event, context) => {
      const alexa = Alexa.handler(event, context);
      alexa.APP_ID = APP_ID;
      // To enable string internationalization (i18n) features, set a resources object.
      // alexa.resources = languageStrings;
      alexa.registerHandlers(handlers);
      alexa.execute();
  };
  