This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use this sample to create your own voice commands | |
intent('What does this app do?','What can I do here', | |
reply('This is a news project.')); | |
const NEWS_API_KEY = [YOUR_API_KEY]; | |
let saved_articles = []; | |
/* NEWS by SOURCE*/ | |
intent('Give me the news from $(source* (.*))', (p) => { | |
let NEWS_API_URL= `http://newsapi.org/v2/top-headlines?apiKey=${NEWS_API_KEY}`; |
NewerOlder