Skip to content

Commit

Permalink
Merge pull request #220 from NetsBlox/alexa-sleep-undefined
Browse files Browse the repository at this point in the history
Fix issues in migrating Alexa skill
  • Loading branch information
brollb authored Feb 7, 2024
2 parents 45205bf + ed4e49d commit 27c687c
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/procedures/alexa/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,22 @@ const _ = require("lodash");
const AlexaSMAPI = require("ask-smapi-sdk");
const GetStorage = require("./storage");
const assert = require("assert");
const { sleep } = require("../../utils");
const { getCloudURL, getServicesURL } = require("../utils");
// FIXME: is sleep defined?
const { sleep } = require("../../timers");
const { NetsBloxCloud, ServerURL } = require("../../config");

/**
* Get the URL of the cloud we are connected to.
*/
function getCloudURL() {
return NetsBloxCloud;
}

/**
* Get the URL of the services host (this instance).
*/
function getServicesURL() {
return ServerURL;
}

// login with alexa credentials
const lwaClientID = process.env.LWA_CLIENT_ID;
Expand Down

0 comments on commit 27c687c

Please sign in to comment.