Open noabody opened 4 years ago
Web app does work on Heroku if I update NPM dependencies in package.json to reflect the latest yt-search and ytdl-core:
Now if I were only half as good as dmhacker.
diff --git a/package.json b/package.json
index 9409458..73f7782 100644
--- a/package.json
+++ b/package.json
@@ -10,12 +10,12 @@
"start": "node index.js"
},
"dependencies": {
- "ejs": "^3.1.2",
+ "ejs": "^3.1.3",
"express": "^4.17.1",
"log": "^6.0.0",
"log-node": "^7.0.0",
- "yt-search": "^1.1.2",
- "ytdl-core": "^2.1.1"
+ "yt-search": "^2.1.1",
+ "ytdl-core": "^3.1.2"
},
"repository": {
"type": "git",
I followed the setup instructions but found it easier when building the skill to choose "Custom" along with "Alexa Hosted(node.js)" then "Hello World Skill".
The "Code" tab shows a folder hierarchy with what appears to be the Lambda hosted code. I simply created folders and files to match the alexa-youtube-skill then copied and pasted the information.
Okay it wasn't simple but I also didn't have to create an AWS to use the skill.
I built the app and specified a youtube API key but the web interface doesn't return any results. Doesn't matter if I use my own or the one specified in the configs. https://raw.githubusercontent.com/dmhacker/alexa-youtube-skill/master/index.js