Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Commit

Permalink
Add minimums for intervals, so people don't abuse it
Browse files Browse the repository at this point in the history
  • Loading branch information
dmhacker committed Feb 9, 2019
1 parent 60d09bb commit 4dfa554
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const heroku = process.env.HEROKU_APP_URL || "https://dmhacker-youtube.herokuapp
const interactive_wait = !(process.env.DISABLE_INTERACTIVE_WAIT === "true" ||
process.env.DISABLE_INTERACTIVE_WAIT === true ||
process.env.DISABLE_INTERACTIVE_WAIT === 1);
const cache_polling_interval = parseInt(process.env.CACHE_POLLING_INTERVAL || "5000", 10);
const ask_interval = parseInt(process.env.ASK_INTERVAL || "45000", 10);
const cache_polling_interval = Math.max(1000, parseInt(process.env.CACHE_POLLING_INTERVAL || "5000", 10));
const ask_interval = Math.max(30000, parseInt(process.env.ASK_INTERVAL || "45000", 10));

// Variables relating to videos waiting for user input
var buffer_search = {};
Expand Down
2 changes: 1 addition & 1 deletion src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alexa-youtube-skill",
"version": "3.0.1",
"version": "3.0.2",
"description": "Use Alexa to search YouTube for your favorite videos",
"engines": {
"node": "6.1.0"
Expand Down

0 comments on commit 4dfa554

Please sign in to comment.